From a06c27a9887c9dd8fc43d9e7d8727a1840292911 Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Wed, 29 Jul 2015 11:02:24 -0400 Subject: Revert "SERVER-19319 Send setShardVersion command after sharding a collection" This reverts commit b0067ef44c6461beed332c8bbfc40ceb55d05d40. --- src/mongo/s/config.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/mongo/s/config.h') diff --git a/src/mongo/s/config.h b/src/mongo/s/config.h index a9ee646f138..415adfd7d46 100644 --- a/src/mongo/s/config.h +++ b/src/mongo/s/config.h @@ -42,8 +42,6 @@ class DatabaseType; class DBConfig; class OperationContext; -typedef std::shared_ptr DBConfigPtr; - struct CollectionInfo { CollectionInfo() { _dirty = false; @@ -118,7 +116,7 @@ public: return _primaryId; } - void enableSharding(bool save = true); + void enableSharding(); /** @return true if there was sharding info to remove @@ -161,21 +159,14 @@ public: protected: typedef std::map CollectionInfoMap; - - /** - lockless - */ - bool _isSharded(const std::string& ns); - bool _dropShardedCollections(OperationContext* txn, int& num, std::set& shardIds, std::string& errmsg); bool _load(); - bool _reload(); - void _save(bool db = true, bool coll = true); + void _save(bool db = true, bool coll = true); // Name of the database which this entry caches const std::string _name; -- cgit v1.2.1