diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2022-06-03 15:24:54 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-03 20:58:41 +0000 |
commit | 16830c53d1cda8193bc8147b5e56d60ae7b32b57 (patch) | |
tree | 6fa367a0e4990b814d1bf8b764b422f25300fb8a /src/mongo/db/initialize_operation_session_info.cpp | |
parent | ab988bae0973d46e58d328b79ab3ad35c131fe14 (diff) | |
download | mongo-16830c53d1cda8193bc8147b5e56d60ae7b32b57.tar.gz |
SERVER-66992 Optimize how often SessionCatalog mutex is held
(cherry picked from commit d457fc3a9723edc094bd7dc45bcf00112cad57c6)
Diffstat (limited to 'src/mongo/db/initialize_operation_session_info.cpp')
-rw-r--r-- | src/mongo/db/initialize_operation_session_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/initialize_operation_session_info.cpp b/src/mongo/db/initialize_operation_session_info.cpp index 32cda8de3e1..a3b75ec443d 100644 --- a/src/mongo/db/initialize_operation_session_info.cpp +++ b/src/mongo/db/initialize_operation_session_info.cpp @@ -99,7 +99,7 @@ OperationSessionInfoFromClient initializeOperationSessionInfo(OperationContext* return {}; } - if (getParentSessionId(lsid)) { + if (isChildSession(lsid)) { uassert(ErrorCodes::InvalidOptions, "Internal sessions are only allowed for internal clients", isAuthorizedForInternalClusterAction); |