summaryrefslogtreecommitdiff
path: root/src/mongo/tools
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2019-05-04 09:03:54 -0400
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2019-05-14 19:23:10 -0400
commitc83e50d7275adf2a5e946ba2c4b0861fcd9dc69b (patch)
tree2f672def64169a68c2017a460896aae6ce67c2e5 /src/mongo/tools
parent089dd83af48cf198916e2dca50742378d4c3d361 (diff)
downloadmongo-c83e50d7275adf2a5e946ba2c4b0861fcd9dc69b.tar.gz
SERVER-28679 Set OP_MSG checksum
Diffstat (limited to 'src/mongo/tools')
-rw-r--r--src/mongo/tools/bridge.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/tools/bridge.cpp b/src/mongo/tools/bridge.cpp
index 4cce5d997b8..b3908037c4b 100644
--- a/src/mongo/tools/bridge.cpp
+++ b/src/mongo/tools/bridge.cpp
@@ -383,6 +383,10 @@ DbResponse ServiceEntryPointBridge::handleRequest(OperationContext* opCtx, const
} else {
dest.setExhaust(false);
}
+
+ // The original checksum won't be valid once the network layer replaces requestId. Remove it
+ // because the network layer re-checksums the response.
+ OpMsg::removeChecksum(&response);
return {std::move(response), exhaustNS};
} else {
return {Message()};