提交 c4eba84e 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.
上级 6d43f13f
...@@ -39,7 +39,7 @@ public class TestMvccMultiThreaded extends TestBase { ...@@ -39,7 +39,7 @@ public class TestMvccMultiThreaded extends TestBase {
int len = 3; int len = 3;
final Connection[] connList = new Connection[len]; final Connection[] connList = new Connection[len];
for (int i = 0; i < len; i++) { for (int i = 0; i < len; i++) {
Connection conn = getConnection("mvccMultiThreaded;MVCC=TRUE;LOCK_TIMEOUT=100"); Connection conn = getConnection("mvccMultiThreaded;MVCC=TRUE;LOCK_TIMEOUT=500");
connList[i] = conn; connList[i] = conn;
} }
Connection conn = connList[0]; Connection conn = connList[0];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论