diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2018-02-23 16:30:10 -0500 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2018-02-26 16:24:49 -0500 |
commit | bec56c498da245a2ea16b30c03a5f3cd240d4e26 (patch) | |
tree | ae79ccae74c04a094df6008d0de294fdfc928d6e | |
parent | a7ec3a3a5023618f7b1a37743e76651536f63c17 (diff) | |
download | mongo-bec56c498da245a2ea16b30c03a5f3cd240d4e26.tar.gz |
SERVER-33045 Remove fcvLock from shardCollection
-rw-r--r-- | src/mongo/db/s/config/configsvr_shard_collection_command.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/s/config/configsvr_shard_collection_command.cpp b/src/mongo/db/s/config/configsvr_shard_collection_command.cpp index 4dc2b459384..48902d2ac6b 100644 --- a/src/mongo/db/s/config/configsvr_shard_collection_command.cpp +++ b/src/mongo/db/s/config/configsvr_shard_collection_command.cpp @@ -737,11 +737,6 @@ public: << cmdObj, opCtx->getWriteConcern().wMode == WriteConcernOptions::kMajority); - // Do not allow sharding collections while a featureCompatibilityVersion upgrade or - // downgrade is in progress (see SERVER-31231 for details). - invariant(!opCtx->lockState()->isLocked()); - Lock::SharedLock lk(opCtx->lockState(), FeatureCompatibilityVersion::fcvLock); - const NamespaceString nss(parseNs(dbname, cmdObj)); auto request = ConfigsvrShardCollectionRequest::parse( IDLParserErrorContext("ConfigsvrShardCollectionRequest"), cmdObj); |