diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-12-09 17:19:48 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-12-13 14:40:34 -0500 |
commit | b07f96535de47c2da6700074e79ce0ee6eb1ae21 (patch) | |
tree | 51c4b4b03a931b3d2d0310917537a96c36f70779 /src/mongo/s/config.h | |
parent | 898c16aad31369e59e3617a3423a5e38e19eb10b (diff) | |
download | mongo-b07f96535de47c2da6700074e79ce0ee6eb1ae21.tar.gz |
SERVER-27381 Remove DBConfig::dropDatabase
Diffstat (limited to 'src/mongo/s/config.h')
-rw-r--r-- | src/mongo/s/config.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/mongo/s/config.h b/src/mongo/s/config.h index 51274467154..0cba78036f9 100644 --- a/src/mongo/s/config.h +++ b/src/mongo/s/config.h @@ -34,14 +34,13 @@ #include "mongo/db/repl/optime.h" #include "mongo/platform/atomic_word.h" #include "mongo/s/client/shard.h" -#include "mongo/util/concurrency/mutex.h" +#include "mongo/stdx/mutex.h" namespace mongo { class ChunkManager; class CollectionType; class DatabaseType; -class DBConfig; class OperationContext; struct CollectionInfo { @@ -129,11 +128,6 @@ public: void enableSharding(OperationContext* txn); /** - @return true if there was sharding info to remove - */ - bool removeSharding(OperationContext* txn, const std::string& ns); - - /** * @return whether or not the 'ns' collection is partitioned */ bool isSharded(const std::string& ns); @@ -163,8 +157,6 @@ public: bool load(OperationContext* txn); bool reload(OperationContext* txn); - bool dropDatabase(OperationContext*, std::string& errmsg); - void getAllShardIds(std::set<ShardId>* shardIds); void getAllShardedCollections(std::set<std::string>& namespaces); @@ -172,11 +164,6 @@ protected: typedef std::map<std::string, CollectionInfo> CollectionInfoMap; typedef AtomicUInt64::WordType Counter; - bool _dropShardedCollections(OperationContext* txn, - int& num, - std::set<ShardId>& shardIds, - std::string& errmsg); - /** * Returns true if it is successful at loading the DBConfig, false if the database is not found, * and throws on all other errors. |