From a9d62c05f1bd56e8a52f12fd096eb4f2d07a8b23 Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Thu, 19 Jan 2017 15:59:53 -0500 Subject: SERVER-27736 Do not store unsharded collections in DBConfig --- src/mongo/s/config.h | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'src/mongo/s/config.h') diff --git a/src/mongo/s/config.h b/src/mongo/s/config.h index 1dcf98d9529..52b9afe9aa3 100644 --- a/src/mongo/s/config.h +++ b/src/mongo/s/config.h @@ -29,8 +29,8 @@ #pragma once #include +#include -#include "mongo/db/jsobj.h" #include "mongo/db/repl/optime.h" #include "mongo/platform/atomic_word.h" #include "mongo/s/client/shard.h" @@ -39,34 +39,10 @@ namespace mongo { class ChunkManager; -class CollectionType; +struct CollectionInfo; class DatabaseType; class OperationContext; -struct CollectionInfo { - CollectionInfo() = default; - CollectionInfo(OperationContext* txn, const CollectionType& coll, repl::OpTime opTime); - ~CollectionInfo(); - - bool isSharded() const { - return _cm.get(); - } - - std::shared_ptr getCM() const { - return _cm; - } - - void resetCM(ChunkManager* cm); - - repl::OpTime getConfigOpTime() const { - return _configOpTime; - } - -private: - repl::OpTime _configOpTime; - std::shared_ptr _cm; -}; - /** * Represents the cache entry for a database. */ -- cgit v1.2.1