summaryrefslogtreecommitdiff
path: root/src/mongo/s/write_ops/batched_command_response.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-02-23 12:57:10 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-02-24 17:01:04 -0500
commite7c8e17220ef32befa8673bd776ba381b1911496 (patch)
tree18ea08c73c12ba756a4a661a6a21dd4b97700971 /src/mongo/s/write_ops/batched_command_response.h
parentcf58ea6426f3bfb5dfbc21700c1c46d32a0bbecc (diff)
downloadmongo-e7c8e17220ef32befa8673bd776ba381b1911496.tar.gz
SERVER-22783 Consolidate WriteConcernError parsing
This change consolidates the checking for writeConcernError section to happen in the ShardRegistry instead of each command doing it separately. This makes WriteConcernFailed to be an actual error code of the command. Also cleans up the WCErrorDetail class by removing unnecessarly functionality.
Diffstat (limited to 'src/mongo/s/write_ops/batched_command_response.h')
-rw-r--r--src/mongo/s/write_ops/batched_command_response.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/s/write_ops/batched_command_response.h b/src/mongo/s/write_ops/batched_command_response.h
index bf2cb1c6f68..e59c2c3ea05 100644
--- a/src/mongo/s/write_ops/batched_command_response.h
+++ b/src/mongo/s/write_ops/batched_command_response.h
@@ -96,7 +96,6 @@ public:
int getErrCode() const;
void setErrMessage(StringData errMessage);
- void unsetErrMessage();
bool isErrMessageSet() const;
const std::string& getErrMessage() const;