summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_get_last_error_cmd.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-01-10 17:09:22 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2018-01-16 13:52:44 -0500
commita6e45f0e35724ae7958e31fc141c89afcefe4d33 (patch)
tree5ac0bf28fc1b977078845cbff966ff3427cfaa92 /src/mongo/s/commands/cluster_get_last_error_cmd.cpp
parent1378f8ec42068913c5bdc5927bbe86d5aed08814 (diff)
downloadmongo-a6e45f0e35724ae7958e31fc141c89afcefe4d33.tar.gz
SERVER-32646 CommandHelpers
Diffstat (limited to 'src/mongo/s/commands/cluster_get_last_error_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_get_last_error_cmd.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mongo/s/commands/cluster_get_last_error_cmd.cpp b/src/mongo/s/commands/cluster_get_last_error_cmd.cpp
index 53fb6d5f7e8..e7150e595b3 100644
--- a/src/mongo/s/commands/cluster_get_last_error_cmd.cpp
+++ b/src/mongo/s/commands/cluster_get_last_error_cmd.cpp
@@ -247,8 +247,12 @@ public:
const HostOpTimeMap hostOpTimes(ClusterLastErrorInfo::get(cc())->getPrevHostOpTimes());
std::vector<LegacyWCResponse> wcResponses;
- auto status = enforceLegacyWriteConcern(
- opCtx, dbname, filterCommandRequestForPassthrough(cmdObj), hostOpTimes, &wcResponses);
+ auto status =
+ enforceLegacyWriteConcern(opCtx,
+ dbname,
+ CommandHelpers::filterCommandRequestForPassthrough(cmdObj),
+ hostOpTimes,
+ &wcResponses);
// Don't forget about our last hosts, reset the client info
ClusterLastErrorInfo::get(cc())->disableForCommand();
@@ -308,7 +312,7 @@ public:
if (numWCErrors == 1) {
// Return the single write concern error we found, err should be set or not
// from gle response
- filterCommandReplyForPassthrough(lastErrResponse->gleResponse, &result);
+ CommandHelpers::filterCommandReplyForPassthrough(lastErrResponse->gleResponse, &result);
return lastErrResponse->gleResponse["ok"].trueValue();
} else {
// Return a generic combined WC error message
@@ -318,7 +322,7 @@ public:
// Need to always return err
result.appendNull("err");
- return appendCommandStatus(
+ return CommandHelpers::appendCommandStatus(
result,
Status(ErrorCodes::WriteConcernFailed, "multiple write concern errors occurred"));
}