hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1455250 - /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java
Date Mon, 11 Mar 2013 17:39:59 GMT
Author: tedyu
Date: Mon Mar 11 17:39:59 2013
New Revision: 1455250

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


Modified:
    hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java

Modified: hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java?rev=1455250&r1=1455249&r2=1455250&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java
(original)
+++ hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServerRunner.java
Mon Mar 11 17:39:59 2013
@@ -1059,9 +1059,9 @@ 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