summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/find_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/find_cmd.cpp
parentc44135cca044b087f529a3024bea8e2c2f1866f4 (diff)
downloadmongo-23c0f6ebdab069e2fa97e42194bdbade77a62810.tar.gz
SERVER-70721 Rename SetTicketAquisitionPriorityForLock to SetAdmissionPriorityForLock
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
-rw-r--r--src/mongo/db/commands/find_cmd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp
index d048a2ec616..81d6c3a5ac8 100644
--- a/src/mongo/db/commands/find_cmd.cpp
+++ b/src/mongo/db/commands/find_cmd.cpp
@@ -433,10 +433,10 @@ public:
// The presence of a term in the request indicates that this is an internal replication
// oplog read request.
if (term && isOplogNss) {
- // 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);
}