HBASE-6336 Split point should not be equal to start row or end row (Chunhui)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1362340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
930fe80dfb
commit
eeb9a275c8
|
@ -1891,9 +1891,9 @@ public class Store extends SchemaConfigured implements HeapSize {
|
|||
KeyValue firstKey = KeyValue.createKeyValueFromKey(fk, 0, fk.length);
|
||||
byte [] lk = r.getLastKey();
|
||||
KeyValue lastKey = KeyValue.createKeyValueFromKey(lk, 0, lk.length);
|
||||
// if the midkey is the same as the first and last keys, then we cannot
|
||||
// if the midkey is the same as the first or last keys, then we cannot
|
||||
// (ever) split this region.
|
||||
if (this.comparator.compareRows(mk, firstKey) == 0 &&
|
||||
if (this.comparator.compareRows(mk, firstKey) == 0 ||
|
||||
this.comparator.compareRows(mk, lastKey) == 0) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("cannot split because midkey is the same as first or " +
|
||||
|
|
Loading…
Reference in New Issue