diff options
-rw-r--r-- | src/mongo/db/commands/server_status_command.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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()); |