summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/sasl_commands.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2018-04-24 16:58:23 -0400
committerMathias Stearn <mathias@10gen.com>2018-05-08 14:57:37 -0400
commit589af3820b00ed0b7ac26a84cfeed6554ab191f3 (patch)
treebb393adad8b1ca4f6f0e23c035141e829e3eeee6 /src/mongo/db/auth/sasl_commands.cpp
parent98f28d452b9b330d6c1696d6d8207b582a5870fc (diff)
downloadmongo-589af3820b00ed0b7ac26a84cfeed6554ab191f3.tar.gz
SERVER-34628 Prep for removing appendCommandStatus
* Added appendCommandStatusNoThrow matching the current aCS behavior * Make appendCommandStatus call uassertStatusOK then aCS on success * Make the few places that need to not throw call aCSNT A following commit will completely remove appendCommandStatus. It is split out because that commit is fairly huge.
Diffstat (limited to 'src/mongo/db/auth/sasl_commands.cpp')
-rw-r--r--src/mongo/db/auth/sasl_commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/auth/sasl_commands.cpp b/src/mongo/db/auth/sasl_commands.cpp
index fdf625b4979..00cb221a6cc 100644
--- a/src/mongo/db/auth/sasl_commands.cpp
+++ b/src/mongo/db/auth/sasl_commands.cpp
@@ -334,7 +334,7 @@ bool CmdSaslContinue::run(OperationContext* opCtx,
}
Status status = doSaslContinue(opCtx, session, cmdObj, &result);
- CommandHelpers::appendCommandStatus(result, status);
+ CommandHelpers::appendCommandStatusNoThrow(result, status);
if (mechanism.isDone()) {
audit::logAuthentication(