diff options
author | Sophia Tan <sophia_tll@hotmail.com> | 2022-08-09 20:20:42 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-09 21:11:06 +0000 |
commit | e5875489052068891fba8f026be2872ac33da7a5 (patch) | |
tree | 1c278dc9520cd089111a90b5df4e3518c052b711 /src/mongo/db/catalog | |
parent | 82e1c21588b149018d36176dc2d7ea4c19305307 (diff) | |
download | mongo-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.cpp | 4 |
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); |