summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
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
parentc44135cca044b087f529a3024bea8e2c2f1866f4 (diff)
downloadmongo-23c0f6ebdab069e2fa97e42194bdbade77a62810.tar.gz
SERVER-70721 Rename SetTicketAquisitionPriorityForLock to SetAdmissionPriorityForLock
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/find_cmd.cpp8
-rw-r--r--src/mongo/db/commands/getmore_cmd.cpp8
2 files changed, 8 insertions, 8 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);
}
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);
}