diff options
author | Irina Yatsenko <irina.yatsenko@mongodb.com> | 2021-08-14 23:11:21 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-14 23:54:17 +0000 |
commit | 1f64d42977db0572b08d7ab19133bc3f21323ce0 (patch) | |
tree | 6478091409d1eabc3ed836646fdad68bdc075ec6 /src/mongo/client/dbclient_connection.cpp | |
parent | 3e64baa99c9331619de112b3957657313e1d4100 (diff) | |
download | mongo-1f64d42977db0572b08d7ab19133bc3f21323ce0.tar.gz |
SERVER-58670 Modernize DBClientBase query interface to avoid OP_QUERY-derived characteristics
Diffstat (limited to 'src/mongo/client/dbclient_connection.cpp')
-rw-r--r-- | src/mongo/client/dbclient_connection.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/client/dbclient_connection.cpp b/src/mongo/client/dbclient_connection.cpp index 6e643b75ad0..b50487dcbfa 100644 --- a/src/mongo/client/dbclient_connection.cpp +++ b/src/mongo/client/dbclient_connection.cpp @@ -47,7 +47,6 @@ #include "mongo/bson/util/bson_extract.h" #include "mongo/bson/util/builder.h" #include "mongo/client/authenticate.h" -#include "mongo/client/constants.h" #include "mongo/client/dbclient_cursor.h" #include "mongo/client/replica_set_monitor.h" #include "mongo/client/sasl_client_authenticate.h" @@ -787,22 +786,6 @@ bool DBClientConnection::call(Message& toSend, return true; } -void DBClientConnection::checkResponse(const std::vector<BSONObj>& batch, - bool networkError, - bool* retry, - string* host) { - /* check for errors. the only one we really care about at - * this stage is "not master" - */ - - *retry = false; - *host = _serverAddress.toString(); - - if (!_parentReplSetName.empty() && !batch.empty()) { - handleNotPrimaryResponse(batch[0], "$err"); - } -} - void DBClientConnection::setParentReplSetName(const string& replSetName) { _parentReplSetName = replSetName; } |