summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_is_master_cmd.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-09-08 14:04:38 -0400
committerDavid Storch <david.storch@10gen.com>2015-09-10 15:54:55 -0400
commit1422edf755dba283ca300365977e379ddb75a4a7 (patch)
tree66279e9c75eb1f44e590915f5b0638235324e276 /src/mongo/s/commands/cluster_is_master_cmd.cpp
parent07ffaa3ca05b1aed1163b53756d642a886df0818 (diff)
downloadmongo-1422edf755dba283ca300365977e379ddb75a4a7.tar.gz
SERVER-20194 SERVER-18849 add support for querying SCCC mode config servers in the new mongos query path
Diffstat (limited to 'src/mongo/s/commands/cluster_is_master_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_is_master_cmd.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mongo/s/commands/cluster_is_master_cmd.cpp b/src/mongo/s/commands/cluster_is_master_cmd.cpp
index e3e0dfbd84c..5104a6a1d78 100644
--- a/src/mongo/s/commands/cluster_is_master_cmd.cpp
+++ b/src/mongo/s/commands/cluster_is_master_cmd.cpp
@@ -72,20 +72,9 @@ public:
result.appendNumber("maxWriteBatchSize", BatchedCommandRequest::kMaxWriteBatchSize);
result.appendDate("localTime", jsTime());
- // Mongos can only send the wire version indicating find and getMore commands support if the
- // config server mode has been upgraded to CSRS.
- //
- // TODO: This special case will no longer be required for 3.4.
- auto catalogManager = grid.catalogManager(txn);
- int maxVersionToSend = maxWireVersion;
- if (maxVersionToSend == WireVersion::FIND_COMMAND &&
- catalogManager->getMode() != CatalogManager::ConfigServerMode::CSRS) {
- maxVersionToSend = WireVersion::RELEASE_2_7_7;
- }
-
// Mongos tries to keep exactly the same version range of the server for which
// it is compiled.
- result.append("maxWireVersion", maxVersionToSend);
+ result.append("maxWireVersion", maxWireVersion);
result.append("minWireVersion", minWireVersion);
return true;