提交 4dcf68ce authored 作者: andrei's avatar andrei

Fix for Issie #531. Saved meta map was lagging by one version.

上级 0fb1e332
...@@ -1067,7 +1067,6 @@ public class MVStore { ...@@ -1067,7 +1067,6 @@ public class MVStore {
int currentUnsavedPageCount = unsavedMemory; int currentUnsavedPageCount = unsavedMemory;
long storeVersion = currentStoreVersion; long storeVersion = currentStoreVersion;
long version = ++currentVersion; long version = ++currentVersion;
setWriteVersion(version);
lastCommitTime = time; lastCommitTime = time;
retainChunk = null; retainChunk = null;
......
...@@ -138,8 +138,8 @@ public class TestMVStore extends TestBase { ...@@ -138,8 +138,8 @@ public class TestMVStore extends TestBase {
store.rollback(); store.rollback();
assertTrue(store.hasMap("test")); assertTrue(store.hasMap("test"));
map = store.openMap("test"); map = store.openMap("test");
// TODO the data should get back alive // the data will get back alive
assertNull(map.get("1")); assertEquals("Hello", map.get("1"));
store.close(); store.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论