summaryrefslogtreecommitdiff
path: root/src/mongo/db/wire_version.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-08-21 11:17:18 -0400
committerDavid Storch <david.storch@10gen.com>2015-08-24 09:31:13 -0400
commitdd15f9c211f5bc40b6fa8a7cd44350d3aeb87d89 (patch)
treec5dd533a814bf498f3aec4a7b52b1c707af5eb11 /src/mongo/db/wire_version.h
parent9140a197d93251d262e4f241e9d3b371ea8f5c2b (diff)
downloadmongo-dd15f9c211f5bc40b6fa8a7cd44350d3aeb87d89.tar.gz
SERVER-18849 only send wire version for find/getMore commands if config server mode is CSRS
A mongod will return a maxWireVersion of 4 to indicate support for the find and getMore commands. In constrast, mongos will only return maxWireVersion of 4 if configured with CSRS, as full find/getMore command support is predicated on config server as a replica set.
Diffstat (limited to 'src/mongo/db/wire_version.h')
-rw-r--r--src/mongo/db/wire_version.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/wire_version.h b/src/mongo/db/wire_version.h
index 8d4ae40d3d9..9d9e7526922 100644
--- a/src/mongo/db/wire_version.h
+++ b/src/mongo/db/wire_version.h
@@ -56,13 +56,13 @@ enum WireVersion {
// support SCRAM-SHA1, listIndexes, listCollections, new explain
RELEASE_2_7_7 = 3,
- // support find/getMore commands, OP_COMMAND in mongod (not mongos)
- RELEASE_3_1_5 = 4
+ // Support find and getMore commands, as well as OP_COMMAND in mongod (but not mongos).
+ FIND_COMMAND = 4,
};
// Latest version that the server accepts. This should always be at the latest entry in
// WireVersion.
-static const int maxWireVersion = RELEASE_3_1_5;
+static const int maxWireVersion = FIND_COMMAND;
// Minimum version that the server accepts. We should bump this whenever we don't want
// to allow communication with too old agents.