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:
parent
95e4f53090
commit
c11bd4a464
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue