提交 a3432f5e authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation / formatting

上级 d74f2413
...@@ -44,8 +44,10 @@ TransactionStore: ...@@ -44,8 +44,10 @@ TransactionStore:
MVStore: MVStore:
- better and clearer memory usage accounting rules - better and clearer memory usage accounting rules
(heap memory versus disk memory), so that even there is never an out of memory (heap memory versus disk memory), so that even there is
even for a small heap, and so that chunks are still relatively big on average never an out of memory
even for a small heap, and so that chunks
are still relatively big on average
- make sure serialization / deserialization errors don't corrupt the file - make sure serialization / deserialization errors don't corrupt the file
- FileStore: don't open and close when set using MVStore.Builder.fileStore - FileStore: don't open and close when set using MVStore.Builder.fileStore
- test and possibly improve compact operation (for large dbs) - test and possibly improve compact operation (for large dbs)
......
...@@ -889,7 +889,7 @@ public class TestMVStore extends TestBase { ...@@ -889,7 +889,7 @@ public class TestMVStore extends TestBase {
MVMap<Integer, Integer> map = s.openMap("test"); MVMap<Integer, Integer> map = s.openMap("test");
map.put(10, 100); map.put(10, 100);
// ensure the file header is overwritten // ensure the file header is overwritten
for (int i = 0; i < 10; i++) { for (int i = 0; i < 30; i++) {
if (i > 5) { if (i > 5) {
s.setRetentionTime(0); s.setRetentionTime(0);
} }
...@@ -898,7 +898,9 @@ public class TestMVStore extends TestBase { ...@@ -898,7 +898,9 @@ public class TestMVStore extends TestBase {
} }
s.close(); s.close();
s = openStore(fileName); s = openStore(fileName);
assertEquals("123", s.getStoreHeader().get("test").toString()); Object test = s.getStoreHeader().get("test");
assertFalse(test == null);
assertEquals("123", test.toString());
s.close(); s.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论