HBASE-6579 Unnecessary KV order check in StoreScanner
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1373537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e5b1ae1916
commit
0875b6873c
|
@ -366,11 +366,8 @@ public class StoreScanner extends NonLazyKeyValueScanner
|
|||
|
||||
LOOP: while((kv = this.heap.peek()) != null) {
|
||||
// Check that the heap gives us KVs in an increasing order.
|
||||
if (prevKV != null && comparator != null
|
||||
&& comparator.compare(prevKV, kv) > 0) {
|
||||
throw new IOException("Key " + prevKV + " followed by a " +
|
||||
"smaller key " + kv + " in cf " + store);
|
||||
}
|
||||
assert prevKV == null || comparator == null || comparator.compare(prevKV, kv) <= 0 :
|
||||
"Key " + prevKV + " followed by a " + "smaller key " + kv + " in cf " + store;
|
||||
prevKV = kv;
|
||||
ScanQueryMatcher.MatchCode qcode = matcher.match(kv);
|
||||
switch(qcode) {
|
||||
|
|
Loading…
Reference in New Issue