summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_rename_collection_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_rename_collection_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_rename_collection_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_rename_collection_cmd.cpp b/src/mongo/s/commands/cluster_rename_collection_cmd.cpp
index b109fdcc556..8920eb793be 100644
--- a/src/mongo/s/commands/cluster_rename_collection_cmd.cpp
+++ b/src/mongo/s/commands/cluster_rename_collection_cmd.cpp
@@ -101,7 +101,7 @@ public:
auto catalogCache = Grid::get(opCtx)->catalogCache();
auto swDbInfo = Grid::get(opCtx)->catalogCache()->getDatabase(opCtx, fromNss.db());
if (swDbInfo == ErrorCodes::NamespaceNotFound) {
- uassert(CollectionUUIDMismatchInfo(fromNss.db().toString(),
+ uassert(CollectionUUIDMismatchInfo(fromNss.dbName(),
*request().getCollectionUUID(),
fromNss.coll().toString(),
boost::none),