summaryrefslogtreecommitdiff
path: root/src/mongo/executor/downconvert_find_and_getmore_commands.cpp
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-03-14 15:46:02 -0400
committerWaley Chen <waleycz@gmail.com>2016-03-17 16:43:04 -0400
commitfd45f0311d634198060128001fac04ecbcefc808 (patch)
tree6ee3f682c642afb62d477500556e1a10b0db29ec /src/mongo/executor/downconvert_find_and_getmore_commands.cpp
parent13435ba4e4ae6df60bc6999ccadd973fe34a5d14 (diff)
downloadmongo-fd45f0311d634198060128001fac04ecbcefc808.tar.gz
SERVER-20077 requestId field of message header should always be a signed integer
Diffstat (limited to 'src/mongo/executor/downconvert_find_and_getmore_commands.cpp')
-rw-r--r--src/mongo/executor/downconvert_find_and_getmore_commands.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/executor/downconvert_find_and_getmore_commands.cpp b/src/mongo/executor/downconvert_find_and_getmore_commands.cpp
index 034c1f133cc..e03e8a0b2d4 100644
--- a/src/mongo/executor/downconvert_find_and_getmore_commands.cpp
+++ b/src/mongo/executor/downconvert_find_and_getmore_commands.cpp
@@ -56,7 +56,7 @@ namespace executor {
namespace {
-StatusWith<std::tuple<CursorId, BSONArray>> getBatchFromReply(std::uint32_t requestId,
+StatusWith<std::tuple<CursorId, BSONArray>> getBatchFromReply(std::int32_t requestId,
const Message& response) {
auto header = response.header();
if (header.getNetworkOp() != mongo::opReply) {
@@ -65,10 +65,10 @@ StatusWith<std::tuple<CursorId, BSONArray>> getBatchFromReply(std::uint32_t requ
<< mongo::networkOpToString(header.getNetworkOp())};
}
- if (header.getResponseTo() != requestId) {
+ if (header.getResponseToMsgId() != requestId) {
return {ErrorCodes::ProtocolError,
str::stream() << "responseTo field of OP_REPLY header with value '"
- << header.getResponseTo() << "' does not match requestId '"
+ << header.getResponseToMsgId() << "' does not match requestId '"
<< requestId << "'"};
}
@@ -204,7 +204,7 @@ StatusWith<Message> downconvertFindCommandRequest(const RemoteCommandRequest& re
return {std::move(message)};
}
-StatusWith<RemoteCommandResponse> upconvertLegacyQueryResponse(std::uint32_t requestId,
+StatusWith<RemoteCommandResponse> upconvertLegacyQueryResponse(std::int32_t requestId,
StringData cursorNamespace,
const Message& response) {
auto swBatch = getBatchFromReply(requestId, response);
@@ -248,7 +248,7 @@ StatusWith<Message> downconvertGetMoreCommandRequest(const RemoteCommandRequest&
return {std::move(m)};
}
-StatusWith<RemoteCommandResponse> upconvertLegacyGetMoreResponse(std::uint32_t requestId,
+StatusWith<RemoteCommandResponse> upconvertLegacyGetMoreResponse(std::int32_t requestId,
StringData cursorNamespace,
const Message& response) {
auto swBatch = getBatchFromReply(requestId, response);