提交 23b32318 authored 作者: Thomas Mueller's avatar Thomas Mueller

MVStore: use a mark & sweep GC algorithm instead of reference counting, to…

MVStore: use a mark & sweep GC algorithm instead of reference counting, to ensure used chunks are never overwrite, even if the reference counting algorithm does not work properly.
上级 16b41b06
...@@ -285,6 +285,8 @@ public class TestConcurrent extends TestMVStore { ...@@ -285,6 +285,8 @@ public class TestConcurrent extends TestMVStore {
MVMap<Integer, Integer> m = s.openMap("dummy"); MVMap<Integer, Integer> m = s.openMap("dummy");
m.put(1, 1); m.put(1, 1);
s.commit(); s.commit();
m.put(2, 2);
s.commit();
MVMap<String, String> meta = s.getMetaMap(); MVMap<String, String> meta = s.getMetaMap();
int chunkCount = 0; int chunkCount = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论