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:
Zhihong Yu 2012-07-17 03:56:07 +00:00
parent 930fe80dfb
commit eeb9a275c8
1 changed files with 2 additions and 2 deletions

View File

@ -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 " +