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/commands/validate.cpp | |
parent | 957f32bcbd3b3485516acdff5c6e99f5b8f790b2 (diff) | |
download | mongo-77ccfbefcd740051597d1cb4eb36d25776926f72.tar.gz |
SERVER-41819 Move methods from KVCollectionCatalogEntry to KVCatalog
Diffstat (limited to 'src/mongo/db/commands/validate.cpp')
-rw-r--r-- | src/mongo/db/commands/validate.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/commands/validate.cpp b/src/mongo/db/commands/validate.cpp index d30c820e747..4a57e81f477 100644 --- a/src/mongo/db/commands/validate.cpp +++ b/src/mongo/db/commands/validate.cpp @@ -37,6 +37,7 @@ #include "mongo/db/commands.h" #include "mongo/db/db_raii.h" #include "mongo/db/query/internal_plans.h" +#include "mongo/db/storage/durable_catalog.h" #include "mongo/db/storage/record_store.h" #include "mongo/db/views/view_catalog.h" #include "mongo/util/fail_point_service.h" @@ -169,8 +170,8 @@ public: return CommandHelpers::appendCommandStatusNoThrow(result, status); } - CollectionCatalogEntry* catalogEntry = collection->getCatalogEntry(); - CollectionOptions opts = catalogEntry->getCollectionOptions(opCtx); + CollectionOptions opts = + DurableCatalog::get(opCtx)->getCollectionOptions(opCtx, collection->ns()); // All collections must have a UUID. if (!opts.uuid) { |