diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutSortReducer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutSortReducer.java index ad58e0c071f..be11bb01335 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutSortReducer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutSortReducer.java @@ -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); }