diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-06-14 22:27:55 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-06-21 20:01:19 -0400 |
commit | 77ccfbefcd740051597d1cb4eb36d25776926f72 (patch) | |
tree | c2c74f14e5acb9a52b39a5bca875d51b89ac9f6c /src/mongo/db/cloner.cpp | |
parent | 957f32bcbd3b3485516acdff5c6e99f5b8f790b2 (diff) | |
download | mongo-77ccfbefcd740051597d1cb4eb36d25776926f72.tar.gz |
SERVER-41819 Move methods from KVCollectionCatalogEntry to KVCatalog
Diffstat (limited to 'src/mongo/db/cloner.cpp')
-rw-r--r-- | src/mongo/db/cloner.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp index f9cc6d2830a..cf2c445a66b 100644 --- a/src/mongo/db/cloner.cpp +++ b/src/mongo/db/cloner.cpp @@ -60,6 +60,7 @@ #include "mongo/db/repl/isself.h" #include "mongo/db/repl/replication_coordinator.h" #include "mongo/db/service_context.h" +#include "mongo/db/storage/durable_catalog.h" #include "mongo/db/storage/storage_options.h" #include "mongo/util/assert_util.h" #include "mongo/util/fail_point_service.h" @@ -611,8 +612,9 @@ Status Cloner::createCollectionsForDb( // exists on the target, we check if the existing collection's options and // UUID match those of the one we're trying to create. If they do, we treat // the create as a no-op; if they don't match, we return an error. - auto existingOpts = - collection->getCatalogEntry()->getCollectionOptions(opCtx).toBSON(); + auto existingOpts = DurableCatalog::get(opCtx) + ->getCollectionOptions(opCtx, collection->ns()) + .toBSON(); UnorderedFieldsBSONObjComparator bsonCmp; optionsBuilder.append(params.collectionInfo["info"]["uuid"]); |