diff options
author | Leonardo Menti <leonardo.menti@mongodb.com> | 2022-09-07 12:22:30 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-07 13:18:26 +0000 |
commit | cd8f093c066e3a7a236857214eef50c61c8c47a5 (patch) | |
tree | 33f0f0eea085892abd1c53be4357435f43e73b02 /src/mongo/db/repl/repl_set_commands.cpp | |
parent | 30583a2c505c03e4d54bbb14cab170b225c071f2 (diff) | |
download | mongo-cd8f093c066e3a7a236857214eef50c61c8c47a5.tar.gz |
SERVER-68584 Generalize skipTicketAcquisitionForLock
Diffstat (limited to 'src/mongo/db/repl/repl_set_commands.cpp')
-rw-r--r-- | src/mongo/db/repl/repl_set_commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/repl_set_commands.cpp b/src/mongo/db/repl/repl_set_commands.cpp index 97a1e2ac1cd..cd17527bbf2 100644 --- a/src/mongo/db/repl/repl_set_commands.cpp +++ b/src/mongo/db/repl/repl_set_commands.cpp @@ -140,7 +140,7 @@ public: // application. ShouldNotConflictWithSecondaryBatchApplicationBlock shouldNotConflictBlock( opCtx->lockState()); - opCtx->lockState()->skipAcquireTicket(); + opCtx->lockState()->setAdmissionPriority(AdmissionContext::Priority::kImmediate); // We need to hold the lock so that we don't run when storage is being shutdown. Lock::GlobalLock lk(opCtx, MODE_IS, |