diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-08-09 17:14:11 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-08-10 11:37:36 -0400 |
commit | a14097396cba4366d159dde303a6d4af130e781f (patch) | |
tree | 4900c6b041cfed325f4f0c102fd842a3f82cc452 /src/mongo/db/service_entry_point_mongod.cpp | |
parent | 5368ddee0e72af3283e2591f751a5b79925e64d0 (diff) | |
download | mongo-a14097396cba4366d159dde303a6d4af130e781f.tar.gz |
SERVER-30549 Do not support secondaries chunk-aware in FCV 3.4
Diffstat (limited to 'src/mongo/db/service_entry_point_mongod.cpp')
-rw-r--r-- | src/mongo/db/service_entry_point_mongod.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/service_entry_point_mongod.cpp b/src/mongo/db/service_entry_point_mongod.cpp index d6f458c9a82..3c2c1d89998 100644 --- a/src/mongo/db/service_entry_point_mongod.cpp +++ b/src/mongo/db/service_entry_point_mongod.cpp @@ -656,7 +656,10 @@ void execCommandDatabase(OperationContext* opCtx, } // We do not redo shard version handling if this command was issued via the direct client. - if (!opCtx->getClient()->isInDirectClient()) { + if ((serverGlobalParams.featureCompatibility.version.load() == + ServerGlobalParams::FeatureCompatibility::Version::k36 || + iAmPrimary) && + !opCtx->getClient()->isInDirectClient()) { // Handle a shard version that may have been sent along with the command. auto commandNS = NamespaceString(command->parseNs(dbname, request.body)); auto& oss = OperationShardingState::get(opCtx); |