summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog_raii.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog_raii.cpp')
-rw-r--r--src/mongo/db/catalog_raii.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog_raii.cpp b/src/mongo/db/catalog_raii.cpp
index 1773269fd77..704c5480de2 100644
--- a/src/mongo/db/catalog_raii.cpp
+++ b/src/mongo/db/catalog_raii.cpp
@@ -483,7 +483,7 @@ AutoGetCollectionLockFree::AutoGetCollectionLockFree(OperationContext* opCtx,
// Check that the sharding database version matches our read.
// Note: this must always be checked, regardless of whether the collection exists, so that the
// dbVersion of this node or the caller gets updated quickly in case either is stale.
- DatabaseShardingState::assertMatchingDbVersion(opCtx, _resolvedNss.db());
+ DatabaseShardingState::assertMatchingDbVersion(opCtx, DatabaseName{_resolvedNss.db()});
checkCollectionUUIDMismatch(opCtx, _resolvedNss, _collectionPtr, options._expectedUUID);