提交 67533809 编写于 作者: F fyrz

[RocksJava] Fixed CompactionTest

上级 1b7b997b
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册