diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2018-11-26 22:43:43 +0000 |
---|---|---|
committer | Sara Golemon <sara.golemon@mongodb.com> | 2018-11-29 17:23:23 +0000 |
commit | 662bec7c902c7e2eacdbeed0c8fca59563d73155 (patch) | |
tree | 3312a3a6330b5415a8e1ce16839e54ed30ffbd1a /src/mongo/client/sasl_client_authenticate_impl.cpp | |
parent | 849367409db1425595b8809bfe8e28aa6fcec059 (diff) | |
download | mongo-662bec7c902c7e2eacdbeed0c8fca59563d73155.tar.gz |
SERVER-37527 Fix lifecycle management and clarify isDone->isSuccess
Diffstat (limited to 'src/mongo/client/sasl_client_authenticate_impl.cpp')
-rw-r--r-- | src/mongo/client/sasl_client_authenticate_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/sasl_client_authenticate_impl.cpp b/src/mongo/client/sasl_client_authenticate_impl.cpp index 2940e0eb809..43e4cf0b57f 100644 --- a/src/mongo/client/sasl_client_authenticate_impl.cpp +++ b/src/mongo/client/sasl_client_authenticate_impl.cpp @@ -211,7 +211,7 @@ Future<void> asyncSaslConversation(auth::RunCommandHook runCommand, } // Exit if we have finished - if (session->isDone()) { + if (session->isSuccess()) { bool isServerDone = serverResponse[saslCommandDoneFieldName].trueValue(); if (!isServerDone) { return Status(ErrorCodes::ProtocolError, "Client finished before server."); |