hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1455401 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java
Date Tue, 12 Mar 2013 03:54:05 GMT
Author: tedyu
Date: Tue Mar 12 03:54:05 2013
New Revision: 1455401

URL: http://svn.apache.org/r1455401
Log:
HBASE-7827 Improve the speed of Hbase Thirft Batch mutation for deletes (Shivendra)


Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java?rev=1455401&r1=1455400&r2=1455401&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java
(original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java
Tue Mar 12 03:54:05 2013
@@ -1047,9 +1047,7 @@ public class ThriftServerRunner implemen
         table = getTable(tableName);
         if (!puts.isEmpty())
           table.put(puts);
-        for (Delete del : deletes) {
-          table.delete(del);
-        }
+        if (!deletes.isEmpty()) table.delete(deletes);
       } catch (IOException e) {
         LOG.warn(e.getMessage(), e);
         throw new IOError(e.getMessage());



Mime
View raw message