diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2022-03-14 20:32:52 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-15 14:34:50 +0000 |
commit | 21634e3b9ce8345b5c79cf2cfee82542f4b5c7d5 (patch) | |
tree | 6671944a4ad2639127aff371603afe79fd5898f3 | |
parent | 1614e2e0e743ec8cc59f6a6c24ee95e9e9c295ae (diff) | |
download | mongo-21634e3b9ce8345b5c79cf2cfee82542f4b5c7d5.tar.gz |
SERVER-64031 serverStatus should not take PBWM lock and skip ticket acquisition
-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()); |