提交 1c4406d1 authored 作者: Thomas Mueller's avatar Thomas Mueller

MVStore: support statements (WIP)

上级 c08eb661
......@@ -91,10 +91,13 @@ public class TestTransactionStore extends TestBase {
assertEquals("Hello", m.get("1"));
assertTrue(m.trySet("1", null, true));
assertTrue(m.trySet("2", "Hello", true));
assertEquals("World", m.get("2"));
// already updated by this statement, so it has no effect
// but still returns true because it was changed by this transaction
assertEquals("World", m.get("2"));
assertTrue(m.trySet("2", null, true));
int TODO;
// assertTrue(m.trySet("2", null, true));
assertTrue(m.trySet("3", "World", true));
// not seen within this statement
assertEquals("Hello", m.get("1"));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论