Skip to content

Commit

Permalink
SERVER-19320 NetworkInterfaceASIO won't send or receive empty messages
Browse files Browse the repository at this point in the history
  • Loading branch information
samantharitter committed Aug 14, 2015
1 parent 2f7b99c commit a93377f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/mongo/executor/network_interface_asio_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,6 @@ void NetworkInterfaceASIO::_beginCommunication(AsyncOp* op) {
}

void NetworkInterfaceASIO::_completedOpCallback(AsyncOp* op) {
// If we were told to send an empty message, toRecv will be empty here.
if (op->command().toRecv().empty()) {
LOG(3) << "received an empty message";
auto elapsed = now() - op->start();
return _completeOperation(op, RemoteCommandResponse(BSONObj(), BSONObj(), elapsed));
}

// TODO: handle metadata readers.
auto response = _responseFromMessage(op->command().toRecv(), op->operationProtocol());
_completeOperation(op, response);
Expand Down

0 comments on commit a93377f

Please sign in to comment.