diff options
author | Nathan Myers <ncm@asperasoft.com> | 2016-09-08 14:30:02 -0400 |
---|---|---|
committer | Nathan Myers <nathan.myers@10gen.com> | 2016-09-20 16:50:54 -0400 |
commit | 1d5eff62fc2ab422c9efe5d3ad7b6f82345b127b (patch) | |
tree | 1e1f7d0482dc3919224e2f489721b44cad8bc2b8 /src/mongo/rpc/protocol.cpp | |
parent | e47083a6894f8096450835c664541105370b975d (diff) | |
download | mongo-1d5eff62fc2ab422c9efe5d3ad7b6f82345b127b.tar.gz |
SERVER-24792 verify new mongos -> old mongod fails
Diffstat (limited to 'src/mongo/rpc/protocol.cpp')
-rw-r--r-- | src/mongo/rpc/protocol.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/rpc/protocol.cpp b/src/mongo/rpc/protocol.cpp index 90e7ad58389..ad4ec071cbd 100644 --- a/src/mongo/rpc/protocol.cpp +++ b/src/mongo/rpc/protocol.cpp @@ -144,7 +144,7 @@ StatusWith<ProtocolSetAndWireVersionInfo> parseProtocolSetFromIsMasterReply( if (minWireVersion < 0 || maxWireVersion < 0 || minWireVersion >= std::numeric_limits<int>::max() || maxWireVersion >= std::numeric_limits<int>::max()) { - return Status(ErrorCodes::BadValue, + return Status(ErrorCodes::IncompatibleServerVersion, str::stream() << "Server min and max wire version have invalid values (" << minWireVersion << "," @@ -186,7 +186,7 @@ Status validateWireVersion(const WireVersionInfo client, const WireVersionInfo s // Server may return bad data. if (server.minWireVersion > server.maxWireVersion) { - return Status(ErrorCodes::BadValue, + return Status(ErrorCodes::IncompatibleServerVersion, str::stream() << "Server min and max wire version are incorrect (" << server.minWireVersion << "," @@ -198,7 +198,7 @@ Status validateWireVersion(const WireVersionInfo client, const WireVersionInfo s // We assert the invariant that min < max above. if (!(client.minWireVersion <= server.maxWireVersion && client.maxWireVersion >= server.minWireVersion)) { - return Status(ErrorCodes::BadValue, + return Status(ErrorCodes::IncompatibleServerVersion, str::stream() << "Server min and max wire version are incompatible (" << server.minWireVersion << "," |