HBASE-7827 Improve the speed of Hbase Thirft Batch mutation for deletes (Shivendra Pratap Singh)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1455248 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-03-11 17:39:25 +00:00
parent 95e4f53090
commit c11bd4a464
1 changed files with 3 additions and 3 deletions

View File

@ -1059,9 +1059,9 @@ public class ThriftServerRunner implements Runnable {
table = getTable(tableName); table = getTable(tableName);
if (!puts.isEmpty()) if (!puts.isEmpty())
table.put(puts); table.put(puts);
for (Delete del : deletes) { if (!deletes.isEmpty())
table.delete(del); table.delete(deletes);
}
} catch (IOException e) { } catch (IOException e) {
LOG.warn(e.getMessage(), e); LOG.warn(e.getMessage(), e);
throw new IOError(e.getMessage()); throw new IOError(e.getMessage());