summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2013-12-04 14:11:47 -0500
committerGreg Studer <greg@10gen.com>2013-12-04 14:11:47 -0500
commitb113ec11a03ff3037d459928df1d492fad59d8eb (patch)
tree45500b15f98bf3b469777ea0511c1865499b5d44
parent3d8faaadab8ed44e30e410565868cac44d35b1c3 (diff)
downloadmongo-b113ec11a03ff3037d459928df1d492fad59d8eb.tar.gz
SERVER-7246 rename internal dbclient_rs auth helper
-rw-r--r--src/mongo/client/dbclient_rs.cpp5
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;
}