diff options
author | Greg Studer <greg@10gen.com> | 2013-12-04 14:11:47 -0500 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-12-04 14:11:47 -0500 |
commit | b113ec11a03ff3037d459928df1d492fad59d8eb (patch) | |
tree | 45500b15f98bf3b469777ea0511c1865499b5d44 | |
parent | 3d8faaadab8ed44e30e410565868cac44d35b1c3 (diff) | |
download | mongo-b113ec11a03ff3037d459928df1d492fad59d8eb.tar.gz |
SERVER-7246 rename internal dbclient_rs auth helper
-rw-r--r-- | src/mongo/client/dbclient_rs.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/client/dbclient_rs.cpp b/src/mongo/client/dbclient_rs.cpp index 62544aca668..78440a3c52e 100644 --- a/src/mongo/client/dbclient_rs.cpp +++ b/src/mongo/client/dbclient_rs.cpp @@ -1652,7 +1652,7 @@ namespace mongo { } } - static bool isAuthException( const DBException& ex ) { + static bool isAuthenticationException( const DBException& ex ) { return ex.getCode() == ErrorCodes::AuthenticationFailed; } @@ -1700,8 +1700,7 @@ namespace mongo { catch ( const DBException &ex ) { // We care if we can't authenticate (i.e. bad password) in credential params. - // We shouldn't be unauthorized since we aren't doing anything yet. - if ( isAuthException( ex ) ) { + if ( isAuthenticationException( ex ) ) { throw; } |