summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/sharding_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/sharding_state.h')
-rw-r--r--src/mongo/db/s/sharding_state.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mongo/db/s/sharding_state.h b/src/mongo/db/s/sharding_state.h
index 28eb837c215..c959592c866 100644
--- a/src/mongo/db/s/sharding_state.h
+++ b/src/mongo/db/s/sharding_state.h
@@ -259,16 +259,6 @@ public:
*/
Status initializeShardingAwarenessIfNeeded(OperationContext* txn);
- /**
- * Check if a command is one of the whitelisted commands that can be accepted with shardVersion
- * information before this node is sharding aware, because the command initializes sharding
- * awareness.
- */
- static bool commandInitializesShardingAwareness(const std::string& commandName) {
- return _commandsThatInitializeShardingAwareness.find(commandName) !=
- _commandsThatInitializeShardingAwareness.end();
- }
-
private:
friend class ScopedRegisterMigration;
@@ -382,10 +372,6 @@ private:
// The id for the cluster this shard belongs to.
OID _clusterId;
- // A whitelist of sharding commands that are allowed when running with --shardsvr but not yet
- // shard aware, because they initialize sharding awareness.
- static const std::set<std::string> _commandsThatInitializeShardingAwareness;
-
// Function for initializing the external sharding state components not owned here.
GlobalInitFunc _globalInit;