From 23c0f6ebdab069e2fa97e42194bdbade77a62810 Mon Sep 17 00:00:00 2001 From: Haley Connelly Date: Mon, 31 Oct 2022 10:30:41 +0000 Subject: SERVER-70721 Rename SetTicketAquisitionPriorityForLock to SetAdmissionPriorityForLock --- src/mongo/db/commands/find_cmd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mongo/db/commands/find_cmd.cpp') 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); } -- cgit v1.2.1