HBASE-6499 StoreScanner's QueryMatcher not reset on store update (Max Lapan)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1424020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2012-12-19 18:49:34 +00:00
parent 04b3f13b38
commit 593fe025b5
1 changed files with 2 additions and 7 deletions

View File

@ -277,13 +277,8 @@ public class StoreScanner extends NonLazyKeyValueScanner
@Override
public synchronized boolean seek(KeyValue key) throws IOException {
if (this.heap == null) {
List<KeyValueScanner> scanners = getScannersNoCompaction();
heap = new KeyValueHeap(scanners, store.comparator);
}
// reset matcher state, in case that underlying store changed
checkReseek();
return this.heap.seek(key);
}