summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/getmore_cmd.cpp
diff options
context:
space:
mode:
authorHaley Connelly <haley.connelly@mongodb.com>2022-10-31 10:30:41 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-31 11:04:27 +0000
commit23c0f6ebdab069e2fa97e42194bdbade77a62810 (patch)
treed4d12e46be38a57b34f4051c44beb42bcbbfd2d1 /src/mongo/db/commands/getmore_cmd.cpp
parentc44135cca044b087f529a3024bea8e2c2f1866f4 (diff)
downloadmongo-23c0f6ebdab069e2fa97e42194bdbade77a62810.tar.gz
SERVER-70721 Rename SetTicketAquisitionPriorityForLock to SetAdmissionPriorityForLock
Diffstat (limited to 'src/mongo/db/commands/getmore_cmd.cpp')
-rw-r--r--src/mongo/db/commands/getmore_cmd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/commands/getmore_cmd.cpp b/src/mongo/db/commands/getmore_cmd.cpp
index bf68d36f105..09aa73cc315 100644
--- a/src/mongo/db/commands/getmore_cmd.cpp
+++ b/src/mongo/db/commands/getmore_cmd.cpp
@@ -722,10 +722,10 @@ public:
// internal clients (see checkAuthForGetMore).
curOp->debug().isReplOplogGetMore = true;
- // We do not want to take tickets for internal (replication) oplog reads. Stalling
- // on ticket acquisition can cause complicated deadlocks. Primaries may depend on
- // data reaching secondaries in order to proceed; and secondaries may get stalled
- // replicating because of an inability to acquire a read ticket.
+ // We do not want to wait to take tickets for internal (replication) oplog reads.
+ // Stalling on ticket acquisition can cause complicated deadlocks. Primaries may
+ // depend on data reaching secondaries in order to proceed; and secondaries may get
+ // stalled replicating because of an inability to acquire a read ticket.
opCtx->lockState()->setAdmissionPriority(AdmissionContext::Priority::kImmediate);
}