summaryrefslogtreecommitdiff
path: root/src/mongo/s/client
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2018-01-12 18:32:38 -0500
committerMathias Stearn <mathias@10gen.com>2018-01-17 17:10:47 -0500
commit4dc36c7ccb6b5b8f7d865993b5d648fe6dc4b7c7 (patch)
treee6e3a8d136a91d9f5ca12ebb2a9604fab8c659cf /src/mongo/s/client
parent68b961b28f5dd40501f0ef9b6c6b515ff1ec7cfd (diff)
downloadmongo-4dc36c7ccb6b5b8f7d865993b5d648fe6dc4b7c7.tar.gz
SERVER-32684 Make mongos write command objects hold Status directly
Diffstat (limited to 'src/mongo/s/client')
-rw-r--r--src/mongo/s/client/shard.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/s/client/shard.cpp b/src/mongo/s/client/shard.cpp
index 67d40a31062..721949af326 100644
--- a/src/mongo/s/client/shard.cpp
+++ b/src/mongo/s/client/shard.cpp
@@ -84,9 +84,7 @@ Status Shard::CommandResponse::processBatchWriteResponse(
if (!status.isOK()) {
batchResponse->clear();
- batchResponse->setErrCode(status.code());
- batchResponse->setErrMessage(status.reason());
- batchResponse->setOk(false);
+ batchResponse->setStatus(status);
}
return status;