diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2019-07-19 16:33:19 -0400 |
---|---|---|
committer | Ben Caimano <ben.caimano@10gen.com> | 2019-07-23 14:51:10 -0400 |
commit | 737bfd75a92d121313bedadf4d85534b529b9ddf (patch) | |
tree | eb668fb950e43ccb0240c5accd794588d200c385 /src/mongo/client | |
parent | 42117c9cc5878739b764d0ce41fc4b635241f772 (diff) | |
download | mongo-737bfd75a92d121313bedadf4d85534b529b9ddf.tar.gz |
SERVER-42164 Allowed ErrorCode::is{Category} to take a Status
Diffstat (limited to 'src/mongo/client')
-rw-r--r-- | src/mongo/client/authenticate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/authenticate.cpp b/src/mongo/client/authenticate.cpp index e5eab6e439e..52055262b78 100644 --- a/src/mongo/client/authenticate.cpp +++ b/src/mongo/client/authenticate.cpp @@ -149,7 +149,7 @@ Future<void> authenticateClient(const BSONObj& params, const std::string& clientName, RunCommandHook runCommand) { auto errorHandler = [](Status status) { - if (serverGlobalParams.transitionToAuth && !status.isA<ErrorCategory::NetworkError>()) { + if (serverGlobalParams.transitionToAuth && !ErrorCodes::isNetworkError(status)) { // If auth failed in transitionToAuth, just pretend it succeeded. log() << "Failed to authenticate in transitionToAuth, falling back to no " "authentication."; |