HBASE-801 Avoid unnecessary lazy seek
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1494458 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
955f87593e
commit
84e4531938
|
@ -294,7 +294,8 @@ public class KeyValueHeap extends NonLazyKeyValueScanner
|
|||
}
|
||||
|
||||
boolean seekResult;
|
||||
if (isLazy) {
|
||||
if (isLazy && heap.size() > 0) {
|
||||
// If there is only one scanner left, we don't do lazy seek.
|
||||
seekResult = scanner.requestSeek(seekKey, forward, useBloom);
|
||||
} else {
|
||||
seekResult = NonLazyKeyValueScanner.doRealSeek(
|
||||
|
|
Loading…
Reference in New Issue