Only switch primary if extraDB != nullptr

This commit is contained in:
Andrew Noyes 2020-08-20 18:05:53 +00:00
parent 30c086ed96
commit 4dc2975f5a
1 changed files with 1 additions and 1 deletions

View File

@ -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);