diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-03-14 12:58:12 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-03-20 18:38:42 -0400 |
commit | 59b3e96b9d2782f044d1113b05c6268ff2ae221b (patch) | |
tree | 9cea468a1f6a75a0f9bf8161b3421bdaa3b5be76 /src/mongo/tools | |
parent | 7ff63b0de1c76b7559c40ffe43360f4161a94277 (diff) | |
download | mongo-59b3e96b9d2782f044d1113b05c6268ff2ae221b.tar.gz |
SERVER-28303 Delete old OP_MSG code
It is been deprecated since at least 1.2 and was never supported in mongos.
Deleting to make room for the new OP_MSG format.
Diffstat (limited to 'src/mongo/tools')
-rw-r--r-- | src/mongo/tools/bridge.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mongo/tools/bridge.cpp b/src/mongo/tools/bridge.cpp index 1963e92a7fa..710b17f4215 100644 --- a/src/mongo/tools/bridge.cpp +++ b/src/mongo/tools/bridge.cpp @@ -138,6 +138,10 @@ public: break; } + uassert(ErrorCodes::IllegalOperation, + str::stream() << "Unsupported network op " << request.operation(), + isSupportedNetworkOp(request.operation())); + if (request.operation() == dbCompressed) { auto swm = compressorManager.decompressMessage(request); if (!swm.isOK()) { @@ -214,10 +218,10 @@ public: } // Send the message we received from '_mp' to 'dest'. 'dest' returns a response for - // OP_QUERY, OP_MSG, OP_GET_MORE, and OP_COMMAND messages that we respond back to + // OP_QUERY, OP_GET_MORE, and OP_COMMAND messages that we respond back to // '_mp' with. - if (request.operation() == dbQuery || request.operation() == dbMsg || - request.operation() == dbGetMore || request.operation() == dbCommand) { + if (request.operation() == dbQuery || request.operation() == dbGetMore || + request.operation() == dbCommand) { // Forward the message to 'dest' and receive its reply in 'response'. response.reset(); dest.port().call(request, response); |