提交 8b018f2b authored 作者: Noel Grandin's avatar Noel Grandin 提交者: GitHub

Merge pull request #532 from andreitokar/Issue#531

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