diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-12-17 20:12:03 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-12-19 12:26:55 -0500 |
commit | 168d46df5887cfa922c34b990e3ee1dd433c2768 (patch) | |
tree | b900d1499089fd1bd92e400bbc35d5943238e4bb /src/mongo/dbtests/mock | |
parent | df79de82bba9d41334003c07fd842cc949453a08 (diff) | |
download | mongo-168d46df5887cfa922c34b990e3ee1dd433c2768.tar.gz |
SERVER-7572 Remove all code that sends AuthenticationTables
Diffstat (limited to 'src/mongo/dbtests/mock')
4 files changed, 5 insertions, 8 deletions
diff --git a/src/mongo/dbtests/mock/mock_dbclient_connection.cpp b/src/mongo/dbtests/mock/mock_dbclient_connection.cpp index 3bf3e2ee2e4..2efd9cdd058 100644 --- a/src/mongo/dbtests/mock/mock_dbclient_connection.cpp +++ b/src/mongo/dbtests/mock/mock_dbclient_connection.cpp @@ -48,12 +48,12 @@ namespace mongo { } bool MockDBClientConnection::runCommand(const string& dbname, const BSONObj& cmdObj, - BSONObj &info, int options, const mongo::AuthenticationTable* auth) { + BSONObj &info, int options) { checkConnection(); try { return _remoteServer->runCommand(_remoteServerInstanceID, dbname, cmdObj, - info, options, auth); + info, options); } catch (const mongo::SocketException&) { _isFailed = true; diff --git a/src/mongo/dbtests/mock/mock_dbclient_connection.h b/src/mongo/dbtests/mock/mock_dbclient_connection.h index 3b4267ad4ac..83bc33d0f32 100644 --- a/src/mongo/dbtests/mock/mock_dbclient_connection.h +++ b/src/mongo/dbtests/mock/mock_dbclient_connection.h @@ -54,8 +54,7 @@ namespace mongo { } bool runCommand(const std::string& dbname, const mongo::BSONObj& cmdObj, - mongo::BSONObj &info, int options = 0, - const mongo::AuthenticationTable* auth = NULL); + mongo::BSONObj &info, int options = 0); std::auto_ptr<mongo::DBClientCursor> query(const std::string &ns, mongo::Query query = mongo::Query(), diff --git a/src/mongo/dbtests/mock/mock_remote_db_server.cpp b/src/mongo/dbtests/mock/mock_remote_db_server.cpp index 570655c42ef..113f98de03b 100644 --- a/src/mongo/dbtests/mock/mock_remote_db_server.cpp +++ b/src/mongo/dbtests/mock/mock_remote_db_server.cpp @@ -123,8 +123,7 @@ namespace mongo { const string& dbname, const BSONObj& cmdObj, BSONObj &info, - int options, - const mongo::AuthenticationTable* auth) { + int options) { checkIfUp(id); // Get the name of the command - copied from _runCommands @ db/dbcommands.cpp diff --git a/src/mongo/dbtests/mock/mock_remote_db_server.h b/src/mongo/dbtests/mock/mock_remote_db_server.h index 09225e18d7a..6942cea2787 100644 --- a/src/mongo/dbtests/mock/mock_remote_db_server.h +++ b/src/mongo/dbtests/mock/mock_remote_db_server.h @@ -132,8 +132,7 @@ namespace mongo { // bool runCommand(InstanceID id, const std::string& dbname, const mongo::BSONObj& cmdObj, - mongo::BSONObj &info, int options = 0, - const mongo::AuthenticationTable* auth = NULL); + mongo::BSONObj &info, int options = 0); mongo::BSONArray query(InstanceID id, const std::string &ns, |