summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/sharding_state.h
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2016-08-02 17:48:20 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2016-08-04 15:10:11 -0400
commit58f8401f1f79dc9ec33b9fdbb3eeb21d9f508245 (patch)
tree3968bc6ccf857272d89a3cc52f40d2bf33664046 /src/mongo/db/s/sharding_state.h
parentaf198512c7dbb00442fb5115aeac661bf85535c8 (diff)
downloadmongo-58f8401f1f79dc9ec33b9fdbb3eeb21d9f508245.tar.gz
SERVER-25417 harden checks around using --shardSvr, --overrideShardIdentity, and queryableBackupMode
Diffstat (limited to 'src/mongo/db/s/sharding_state.h')
-rw-r--r--src/mongo/db/s/sharding_state.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/mongo/db/s/sharding_state.h b/src/mongo/db/s/sharding_state.h
index a27b2841eda..209d8754a34 100644
--- a/src/mongo/db/s/sharding_state.h
+++ b/src/mongo/db/s/sharding_state.h
@@ -118,25 +118,10 @@ public:
void initializeFromConfigConnString(OperationContext* txn, const std::string& configSvr);
/**
- * Initializes the sharding state of this server from the shard identity document from local
- * storage.
- *
- * Note that this will also try to connect to the config servers and will block until it
- * succeeds.
- */
- Status initializeFromShardIdentity(OperationContext* txn);
-
- /**
* Initializes the sharding state of this server from the shard identity document argument.
- * This is the more genaralized form of the initializeFromShardIdentity(OperationContext*)
- * method that can accept the shard identity from any source. Note that shardIdentity must
- * be valid.
- *
- * Returns ErrorCodes::ExceededTimeLimit if deadline has passed.
*/
Status initializeFromShardIdentity(OperationContext* txn,
- const ShardIdentityType& shardIdentity,
- Date_t deadline);
+ const ShardIdentityType& shardIdentity);
/**
* Shuts down sharding machinery on the shard.
@@ -266,6 +251,8 @@ public:
*/
void setScheduleCleanupFunctionForTest(RangeDeleterCleanupNotificationFunc fn);
+ Status initializeShardingAwarenessIfNeeded(OperationContext* txn);
+
private:
friend class ScopedRegisterMigration;