summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2022-08-09 20:20:42 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-09 21:11:06 +0000
commite5875489052068891fba8f026be2872ac33da7a5 (patch)
tree1c278dc9520cd089111a90b5df4e3518c052b711 /src/mongo/db/catalog
parent82e1c21588b149018d36176dc2d7ea4c19305307 (diff)
downloadmongo-e5875489052068891fba8f026be2872ac33da7a5.tar.gz
SERVER-67461 Convert the renameCollection command to a TypedCommand
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r--src/mongo/db/catalog/rename_collection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/rename_collection.cpp b/src/mongo/db/catalog/rename_collection.cpp
index 95f223169fa..05c2bc09a4f 100644
--- a/src/mongo/db/catalog/rename_collection.cpp
+++ b/src/mongo/db/catalog/rename_collection.cpp
@@ -299,7 +299,7 @@ Status renameCollectionWithinDB(OperationContext* opCtx,
invariant(source.db() == target.db());
DisableDocumentValidation validationDisabler(opCtx);
- AutoGetDb autoDb(opCtx, source.db(), MODE_IX);
+ AutoGetDb autoDb(opCtx, source.dbName(), MODE_IX);
boost::optional<Lock::CollectionLock> sourceLock;
boost::optional<Lock::CollectionLock> targetLock;
@@ -353,7 +353,7 @@ Status renameCollectionWithinDBForApplyOps(OperationContext* opCtx,
invariant(source.db() == target.db());
DisableDocumentValidation validationDisabler(opCtx);
- AutoGetDb autoDb(opCtx, source.db(), MODE_X);
+ AutoGetDb autoDb(opCtx, source.dbName(), MODE_X);
auto status = checkSourceAndTargetNamespaces(
opCtx, source, target, options, /* targetExistsAllowed */ true);