[RocksJava] Fixed CompactionTest

This commit is contained in:
fyrz 2015-03-04 22:30:54 +01:00
parent 1b7b997b88
commit 67533809fd

View File

@ -472,8 +472,9 @@ public class RocksDBTest {
rand.nextBytes(b);
db.put((String.valueOf(i)).getBytes(), b);
}
db.flush(new FlushOptions().setWaitForFlush(true));
db.compactRange("0".getBytes(), "201".getBytes(),
true, 0, -1);
true, -1, 0);
} finally {
if (db != null) {
db.close();
@ -580,7 +581,7 @@ public class RocksDBTest {
String.valueOf(i).getBytes(), b);
}
db.compactRange(columnFamilyHandles.get(1), "0".getBytes(),
"201".getBytes(), true, 0, -1);
"201".getBytes(), true, -1, 0);
} finally {
for (ColumnFamilyHandle handle : columnFamilyHandles) {
handle.dispose();