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:
Michael Stack 2013-06-19 04:58:26 +00:00
parent 955f87593e
commit 84e4531938
1 changed files with 2 additions and 1 deletions

View File

@ -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(