From 21634e3b9ce8345b5c79cf2cfee82542f4b5c7d5 Mon Sep 17 00:00:00 2001 From: Gregory Wlodarek Date: Mon, 14 Mar 2022 20:32:52 +0000 Subject: SERVER-64031 serverStatus should not take PBWM lock and skip ticket acquisition --- src/mongo/db/commands/server_status_command.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mongo/db/commands/server_status_command.cpp b/src/mongo/db/commands/server_status_command.cpp index f099766e564..6435da21c95 100644 --- a/src/mongo/db/commands/server_status_command.cpp +++ b/src/mongo/db/commands/server_status_command.cpp @@ -85,6 +85,11 @@ public: const auto authSession = AuthorizationSession::get(Client::getCurrent()); + // This command is important to observability, and like FTDC, does not need to acquire the + // PBWM lock to return correct results. + ShouldNotConflictWithSecondaryBatchApplicationBlock noPBWMBlock(opCtx->lockState()); + opCtx->lockState()->skipAcquireTicket(); + // --- basic fields that are global result.append("host", prettyHostName()); -- cgit v1.2.1