summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/noop_writer.cpp
diff options
context:
space:
mode:
authorJennifer Peshansky <jennifer.peshansky@mongodb.com>2022-11-03 16:13:20 +0000
committerJennifer Peshansky <jennifer.peshansky@mongodb.com>2022-11-03 16:13:20 +0000
commite74d2910bbe76790ad131d53fee277829cd95982 (patch)
treecabe148764529c9623652374fbc36323a550cd44 /src/mongo/db/repl/noop_writer.cpp
parent280145e9940729480bb8a35453d4056afac87641 (diff)
parentba467f46cc1bc49965e1d72b541eff0cf1d7b22e (diff)
downloadmongo-jenniferpeshansky/SERVER-70854.tar.gz
Merge branch 'master' into jenniferpeshansky/SERVER-70854jenniferpeshansky/SERVER-70854
Diffstat (limited to 'src/mongo/db/repl/noop_writer.cpp')
-rw-r--r--src/mongo/db/repl/noop_writer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/noop_writer.cpp b/src/mongo/db/repl/noop_writer.cpp
index 0b94f0dc60a..c34fc425030 100644
--- a/src/mongo/db/repl/noop_writer.cpp
+++ b/src/mongo/db/repl/noop_writer.cpp
@@ -137,9 +137,9 @@ Status NoopWriter::startWritingPeriodicNoops(OpTime lastKnownOpTime) {
_noopRunner =
std::make_unique<PeriodicNoopRunner>(_writeInterval, [this](OperationContext* opCtx) {
// Noop writes are critical for the cluster stability, so we mark it as having Immediate
- // priority. As a result it will skip both flow control and normal ticket acquisition.
- SetTicketAquisitionPriorityForLock priority(opCtx,
- AdmissionContext::Priority::kImmediate);
+ // priority. As a result it will skip both flow control and waiting for ticket
+ // acquisition.
+ SetAdmissionPriorityForLock priority(opCtx, AdmissionContext::Priority::kImmediate);
_writeNoop(opCtx);
});
return Status::OK();