diff options
author | Rishab Joshi <rishab.joshi@mongodb.com> | 2022-10-09 23:40:38 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-10 00:14:45 +0000 |
commit | f87af6f88a5b2493241a9e96ae6057ad8f828adc (patch) | |
tree | 535a278e33b37e7146eec56eebf177404f928507 /src/mongo/db/introspect.cpp | |
parent | 1043b0150e33ec5c27d6f410fe074e22efc9e3e7 (diff) | |
download | mongo-f87af6f88a5b2493241a9e96ae6057ad8f828adc.tar.gz |
SERVER-70197 Fix locking issue when creating tenant's profile collection.
Diffstat (limited to 'src/mongo/db/introspect.cpp')
-rw-r--r-- | src/mongo/db/introspect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp index 2851471ae6b..a64f1b825a3 100644 --- a/src/mongo/db/introspect.cpp +++ b/src/mongo/db/introspect.cpp @@ -162,7 +162,7 @@ Status createProfileCollection(OperationContext* opCtx, Database* db) { invariant(opCtx->lockState()->isDbLockedForMode(db->name(), MODE_IX)); invariant(!opCtx->shouldParticipateInFlowControl()); - const auto dbProfilingNS = NamespaceString(db->name().db(), "system.profile"); + const auto dbProfilingNS = NamespaceString(db->name(), "system.profile"); // Checking the collection exists must also be done in the WCE retry loop. Only retrying // collection creation would endlessly throw errors because the collection exists: must check |