HBASE-8809 test fix

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1500232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
larsh 2013-07-06 08:55:55 +00:00
parent 2bbb39fc31
commit b256284f51
1 changed files with 2 additions and 1 deletions

View File

@ -789,7 +789,8 @@ public class TestKeepDeletes extends HBaseTestCase {
private int countDeleteMarkers(HRegion region) throws IOException {
Scan s = new Scan();
s.setRaw(true);
s.setMaxVersions();
// use max versions from the store(s)
s.setMaxVersions(region.getStores().values().iterator().next().getScanInfo().getMaxVersions());
InternalScanner scan = region.getScanner(s);
List<KeyValue> kvs = new ArrayList<KeyValue>();
int res = 0;