diff options
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."; |