summaryrefslogtreecommitdiff
path: root/src/mongo/s/config.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-07-29 11:02:24 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-07-29 14:22:36 -0400
commita06c27a9887c9dd8fc43d9e7d8727a1840292911 (patch)
treebb88c00709b79e925458f2ce497a9b94f3c205f6 /src/mongo/s/config.h
parentb0067ef44c6461beed332c8bbfc40ceb55d05d40 (diff)
downloadmongo-a06c27a9887c9dd8fc43d9e7d8727a1840292911.tar.gz
Revert "SERVER-19319 Send setShardVersion command after sharding a collection"
This reverts commit b0067ef44c6461beed332c8bbfc40ceb55d05d40.
Diffstat (limited to 'src/mongo/s/config.h')
-rw-r--r--src/mongo/s/config.h13
1 files changed, 2 insertions, 11 deletions
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<DBConfig> 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<std::string, CollectionInfo> CollectionInfoMap;
-
- /**
- lockless
- */
- bool _isSharded(const std::string& ns);
-
bool _dropShardedCollections(OperationContext* txn,
int& num,
std::set<ShardId>& 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;