hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1596380 - /hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutSortReducer.java
Date Tue, 20 May 2014 19:53:41 GMT
Author: tedyu
Date: Tue May 20 19:53:40 2014
New Revision: 1596380

URL: http://svn.apache.org/r1596380
Log:
HBASE-10417 index is not incremented in PutSortReducer#reduce() (Gustavo)


Modified:
    hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutSortReducer.java

Modified: hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutSortReducer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutSortReducer.java?rev=1596380&r1=1596379&r2=1596380&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutSortReducer.java
(original)
+++ hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutSortReducer.java
Tue May 20 19:53:40 2014
@@ -76,7 +76,7 @@ public class PutSortReducer extends
       int index = 0;
       for (KeyValue kv : map) {
         context.write(row, kv);
-        if (index > 0 && index % 100 == 0)
+        if (++index % 100 == 0)
           context.setStatus("Wrote " + index);
       }
 



Mime
View raw message