diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-01-19 15:59:53 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-01-19 20:15:59 -0500 |
commit | a9d62c05f1bd56e8a52f12fd096eb4f2d07a8b23 (patch) | |
tree | a6a9bcc125cce95914e1f3249b94979185caa81c /src/mongo/s/config.h | |
parent | d7b5703ae68a85bdb9f69f91453e3deced93cb92 (diff) | |
download | mongo-a9d62c05f1bd56e8a52f12fd096eb4f2d07a8b23.tar.gz |
SERVER-27736 Do not store unsharded collections in DBConfig
Diffstat (limited to 'src/mongo/s/config.h')
-rw-r--r-- | src/mongo/s/config.h | 28 |
1 files changed, 2 insertions, 26 deletions
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 <set> +#include <string> -#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<ChunkManager> getCM() const { - return _cm; - } - - void resetCM(ChunkManager* cm); - - repl::OpTime getConfigOpTime() const { - return _configOpTime; - } - -private: - repl::OpTime _configOpTime; - std::shared_ptr<ChunkManager> _cm; -}; - /** * Represents the cache entry for a database. */ |