summaryrefslogtreecommitdiff
path: root/src/mongo/rpc
diff options
context:
space:
mode:
authorLeon Zaruvinsky <leon@mongodb.com>2016-06-06 16:47:15 -0400
committerLeon Zaruvinsky <leon@mongodb.com>2016-06-07 17:16:08 -0400
commit070d49e2c66f96adf17883638cee43a25f136fea (patch)
tree7b1fbe23d8692ee9e784b01ffb3a4b97fb40f43b /src/mongo/rpc
parent01dfe61a6c03307f0384406bfbde486f8de15425 (diff)
downloadmongo-070d49e2c66f96adf17883638cee43a25f136fea.tar.gz
SERVER-24191 Bump wire version number to show command support for write concern
Diffstat (limited to 'src/mongo/rpc')
-rw-r--r--src/mongo/rpc/protocol_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/rpc/protocol_test.cpp b/src/mongo/rpc/protocol_test.cpp
index 150c97583e7..7ee5abd09ac 100644
--- a/src/mongo/rpc/protocol_test.cpp
+++ b/src/mongo/rpc/protocol_test.cpp
@@ -72,7 +72,8 @@ TEST(Protocol, parseProtocolSetFromIsMasterReply) {
{
// MongoDB 3.2 (mongod)
auto mongod32 =
- BSON("maxWireVersion" << static_cast<int>(WireVersion::FIND_COMMAND) << "minWireVersion"
+ BSON("maxWireVersion" << static_cast<int>(WireVersion::COMMANDS_ACCEPT_WRITE_CONCERN)
+ << "minWireVersion"
<< static_cast<int>(WireVersion::RELEASE_2_4_AND_BEFORE));
ASSERT_EQ(assertGet(parseProtocolSetFromIsMasterReply(mongod32)), supports::kAll);
@@ -80,7 +81,8 @@ TEST(Protocol, parseProtocolSetFromIsMasterReply) {
{
// MongoDB 3.2 (mongos)
auto mongos32 =
- BSON("maxWireVersion" << static_cast<int>(WireVersion::FIND_COMMAND) << "minWireVersion"
+ BSON("maxWireVersion" << static_cast<int>(WireVersion::COMMANDS_ACCEPT_WRITE_CONCERN)
+ << "minWireVersion"
<< static_cast<int>(WireVersion::RELEASE_2_4_AND_BEFORE)
<< "msg"
<< "isdbgrid");