提交 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 { ...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论