HBASE-13978: Variable never assigned in SimpleTotalOrderPartitioner.getPartition()

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Bhupendra 2015-06-29 14:40:07 +05:30 committed by Sean Busbey
parent 364205da25
commit 7a6f269c4d
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,7 @@ implements Configurable {
for (int i = 0; i < splits.length; i++) { for (int i = 0; i < splits.length; i++) {
LOG.info(Bytes.toStringBinary(splits[i])); LOG.info(Bytes.toStringBinary(splits[i]));
} }
this.lastReduces = reduces;
} }
int pos = Bytes.binarySearch(this.splits, key.get(), key.getOffset(), int pos = Bytes.binarySearch(this.splits, key.get(), key.getOffset(),
key.getLength()); key.getLength());
@ -138,5 +139,7 @@ implements Configurable {
} }
LOG.info("startkey=" + Bytes.toStringBinary(startkey) + LOG.info("startkey=" + Bytes.toStringBinary(startkey) +
", endkey=" + Bytes.toStringBinary(endkey)); ", endkey=" + Bytes.toStringBinary(endkey));
// Reset last reduces count on change of Start / End key
this.lastReduces = -1;
} }
} }