diff options
Diffstat (limited to 'src/mongo/db/repl/replication_consistency_markers_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_consistency_markers_impl.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mongo/db/repl/replication_consistency_markers_impl.cpp b/src/mongo/db/repl/replication_consistency_markers_impl.cpp index b06238cb0d9..1e44889baf1 100644 --- a/src/mongo/db/repl/replication_consistency_markers_impl.cpp +++ b/src/mongo/db/repl/replication_consistency_markers_impl.cpp @@ -418,12 +418,11 @@ ReplicationConsistencyMarkersImpl::refreshOplogTruncateAfterPointIfPrimary( } ON_BLOCK_EXIT([&] { opCtx->recoveryUnit()->setPrepareConflictBehavior(originalBehavior); }); - // Exempt storage ticket acquisition in order to avoid starving upstream requests waiting - // for durability. SERVER-60682 is an example with more pending prepared transactions than - // storage tickets; the transaction coordinator could not persist the decision and - // had to unnecessarily wait for prepared transactions to expire to make forward progress. - SetTicketAquisitionPriorityForLock setTicketAquisition(opCtx, - AdmissionContext::Priority::kImmediate); + // Exempt waiting for storage ticket acquisition in order to avoid starving upstream requests + // waiting for durability. SERVER-60682 is an example with more pending prepared transactions + // than storage tickets; the transaction coordinator could not persist the decision and had to + // unnecessarily wait for prepared transactions to expire to make forward progress. + SetAdmissionPriorityForLock setTicketAquisition(opCtx, AdmissionContext::Priority::kImmediate); // The locks necessary to write to the oplog truncate after point's collection and read from the // oplog collection must be taken up front so that the mutex can also be taken around both |