HBASE-13978: Variable never assigned in SimpleTotalOrderPartitioner.getPartition()
Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
parent
364205da25
commit
7a6f269c4d
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue