Skip to content

Commit

Permalink
SERVER-24827 Notify ReplicaSetMonitor on write concern errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloianm committed Jun 28, 2016
1 parent a0351d0 commit 81b3d4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mongo/s/client/shard_remote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ StatusWith<Shard::CommandResponse> ShardRemote::_runCommand(OperationContext* tx
BSONObj responseMetadata = swResponse.getValue().metadata.getOwned();
Status commandStatus = getStatusFromCommandResult(responseObj);
Status writeConcernStatus = getWriteConcernStatusFromCommandResult(responseObj);

// Tell the replica set monitor of any errors
updateReplSetMonitor(host.getValue(), commandStatus);
updateReplSetMonitor(host.getValue(), writeConcernStatus);

return CommandResponse(std::move(responseObj),
std::move(responseMetadata),
Expand Down

0 comments on commit 81b3d4e

Please sign in to comment.