Address pr comments, remove wait(tr.commit()) for read-only txn

This commit is contained in:
mengranwo 2019-06-30 16:00:21 -07:00 committed by Alex Miller
parent 0ad151e70a
commit e54eedf0e2
1 changed files with 1 additions and 6 deletions

View File

@ -3648,16 +3648,11 @@ ACTOR Future<Void> memoryStoreRecover(IKeyValueStore* store, Reference<ClusterCo
tr.reset();
TraceEvent("RemoveStorageServerRetrying").detail("Count", noCanRemoveCount++).detail("ServerID", id).detail("CanRemove", canRemove);
} else {
wait(tr.commit());
return Void();
}
} catch (Error& e) {
state Error err = e;
try {
wait( tr.onError(e));
} catch (Error& e2) {
return Never();
}
wait(tr.onError(e));
TraceEvent("RemoveStorageServerRetrying").error(err);
}
}