Only switch primary if extraDB != nullptr
This commit is contained in:
parent
30c086ed96
commit
4dc2975f5a
|
@ -343,7 +343,7 @@ struct VersionStampWorkload : TestWorkload {
|
|||
}
|
||||
catch (Error &e) {
|
||||
err = e;
|
||||
if (err.code() == error_code_database_locked) {
|
||||
if (err.code() == error_code_database_locked && g_simulator.extraDB != nullptr) {
|
||||
//TraceEvent("VST_CommitDatabaseLocked");
|
||||
cx_is_primary = !cx_is_primary;
|
||||
tr = ReadYourWritesTransaction(cx_is_primary ? cx : extraDB);
|
||||
|
|
Loading…
Reference in New Issue