diff options
author | Leon Zaruvinsky <leon@mongodb.com> | 2016-06-06 16:47:15 -0400 |
---|---|---|
committer | Leon Zaruvinsky <leon@mongodb.com> | 2016-06-07 17:16:08 -0400 |
commit | 070d49e2c66f96adf17883638cee43a25f136fea (patch) | |
tree | 7b1fbe23d8692ee9e784b01ffb3a4b97fb40f43b /src/mongo/rpc | |
parent | 01dfe61a6c03307f0384406bfbde486f8de15425 (diff) | |
download | mongo-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.cpp | 6 |
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"); |