From b07f96535de47c2da6700074e79ce0ee6eb1ae21 Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Fri, 9 Dec 2016 17:19:48 -0500 Subject: SERVER-27381 Remove DBConfig::dropDatabase --- src/mongo/s/config.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/mongo/s/config.h') 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 { @@ -128,11 +127,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 */ @@ -163,8 +157,6 @@ public: bool load(OperationContext* txn); bool reload(OperationContext* txn); - bool dropDatabase(OperationContext*, std::string& errmsg); - void getAllShardIds(std::set* shardIds); void getAllShardedCollections(std::set& namespaces); @@ -172,11 +164,6 @@ protected: typedef std::map CollectionInfoMap; typedef AtomicUInt64::WordType Counter; - bool _dropShardedCollections(OperationContext* txn, - int& num, - std::set& 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. -- cgit v1.2.1