Skip to content

Commit e2954b8

Browse files
committed
use repeatable read isolation level
1 parent fce52d2 commit e2954b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/multimaster/tests/dtmbench.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ void* writer(void* arg)
146146
}
147147
for (int i = 0; i < cfg.nIterations; i++)
148148
{
149-
work txn(*conns[random() % conns.size()]);
149+
//work
150+
transaction<repeatable_read> txn(*conns[random() % conns.size()]);
150151
int srcAcc = random() % cfg.nAccounts;
151152
int dstAcc = random() % cfg.nAccounts;
152153
try {

0 commit comments

Comments
 (0)