diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-08-01 14:47:28 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-08-16 16:28:02 -0400 |
commit | 5a1b0681dcee481f631dc647000b895e20cc7cfd (patch) | |
tree | 57b1d42d0eb94750d3855cba6886700776022d31 /src/mongo/client/dbclient_rs.cpp | |
parent | c593ea7bb9815ced064ad8aa7ffa206fa94757c4 (diff) | |
download | mongo-5a1b0681dcee481f631dc647000b895e20cc7cfd.tar.gz |
SERVER-30580 Eliminate DBException::getCode() in favor of code()
Diffstat (limited to 'src/mongo/client/dbclient_rs.cpp')
-rw-r--r-- | src/mongo/client/dbclient_rs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/dbclient_rs.cpp b/src/mongo/client/dbclient_rs.cpp index 383a215b028..f3316a1d373 100644 --- a/src/mongo/client/dbclient_rs.cpp +++ b/src/mongo/client/dbclient_rs.cpp @@ -410,7 +410,7 @@ bool DBClientReplicaSet::connect() { } static bool isAuthenticationException(const DBException& ex) { - return ex.getCode() == ErrorCodes::AuthenticationFailed; + return ex.code() == ErrorCodes::AuthenticationFailed; } void DBClientReplicaSet::_auth(const BSONObj& params) { |