提交 d99167aa authored 作者: Thomas Mueller's avatar Thomas Mueller

MVCC: the probability of lock timeouts is now lower if multiple threads try to…

MVCC: the probability of lock timeouts is now lower if multiple threads try to update the same rows.
上级 a341cf8b
...@@ -54,6 +54,7 @@ public class TestMvccMultiThreaded extends TestBase { ...@@ -54,6 +54,7 @@ public class TestMvccMultiThreaded extends TestBase {
while (!stop) { while (!stop) {
c.createStatement().execute("merge into test values(1, 'x')"); c.createStatement().execute("merge into test values(1, 'x')");
c.commit(); c.commit();
Thread.sleep(1);
} }
} }
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论