diff options
author | Mathias Stearn <mathias@10gen.com> | 2018-01-12 18:32:38 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2018-01-17 17:10:47 -0500 |
commit | 4dc36c7ccb6b5b8f7d865993b5d648fe6dc4b7c7 (patch) | |
tree | e6e3a8d136a91d9f5ca12ebb2a9604fab8c659cf /src/mongo/s/client | |
parent | 68b961b28f5dd40501f0ef9b6c6b515ff1ec7cfd (diff) | |
download | mongo-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.cpp | 4 |
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; |