diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2018-06-19 15:09:01 -0400 |
---|---|---|
committer | Henrik Edin <henrik.edin@mongodb.com> | 2018-06-29 11:57:55 -0400 |
commit | cfa96795eefed2061628891c43ccdc2c256bb40a (patch) | |
tree | 110d230d14a7a60fa8b7ce937a77def7af98f1ef /src/mongo/dbtests | |
parent | 40ad396238fdfb87a7a86e26020db2d293d23f40 (diff) | |
download | mongo-cfa96795eefed2061628891c43ccdc2c256bb40a.tar.gz |
SERVER-35115 Separate dbclientinterface.h into several parts, one per class.
Diffstat (limited to 'src/mongo/dbtests')
26 files changed, 32 insertions, 38 deletions
diff --git a/src/mongo/dbtests/clienttests.cpp b/src/mongo/dbtests/clienttests.cpp index cbec62d92b5..62c529da26b 100644 --- a/src/mongo/dbtests/clienttests.cpp +++ b/src/mongo/dbtests/clienttests.cpp @@ -30,7 +30,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/index_catalog.h" diff --git a/src/mongo/dbtests/dbhelper_tests.cpp b/src/mongo/dbtests/dbhelper_tests.cpp index 37dadcdf485..975a446894a 100644 --- a/src/mongo/dbtests/dbhelper_tests.cpp +++ b/src/mongo/dbtests/dbhelper_tests.cpp @@ -28,7 +28,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database_holder.h" #include "mongo/db/client.h" diff --git a/src/mongo/dbtests/dbtests.cpp b/src/mongo/dbtests/dbtests.cpp index a0823458812..2f89aa3354e 100644 --- a/src/mongo/dbtests/dbtests.cpp +++ b/src/mongo/dbtests/dbtests.cpp @@ -35,7 +35,6 @@ #include "mongo/base/init.h" #include "mongo/base/initializer.h" -#include "mongo/client/dbclientinterface.h" #include "mongo/db/auth/authorization_manager.h" #include "mongo/db/auth/authorization_manager_global.h" #include "mongo/db/catalog/index_create.h" diff --git a/src/mongo/dbtests/executor_registry.cpp b/src/mongo/dbtests/executor_registry.cpp index 02686dd2c26..c8c90aa5374 100644 --- a/src/mongo/dbtests/executor_registry.cpp +++ b/src/mongo/dbtests/executor_registry.cpp @@ -33,7 +33,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/client.h" diff --git a/src/mongo/dbtests/logical_sessions_tests.cpp b/src/mongo/dbtests/logical_sessions_tests.cpp index 464491405cd..07b3f892531 100644 --- a/src/mongo/dbtests/logical_sessions_tests.cpp +++ b/src/mongo/dbtests/logical_sessions_tests.cpp @@ -30,7 +30,6 @@ #include <memory> -#include "mongo/client/dbclientinterface.h" #include "mongo/client/index_spec.h" #include "mongo/db/dbdirectclient.h" #include "mongo/db/logical_session_id.h" diff --git a/src/mongo/dbtests/mock/mock_conn_registry.h b/src/mongo/dbtests/mock/mock_conn_registry.h index 7f4a7b849da..853f386d980 100644 --- a/src/mongo/dbtests/mock/mock_conn_registry.h +++ b/src/mongo/dbtests/mock/mock_conn_registry.h @@ -29,7 +29,6 @@ #pragma once #include "mongo/base/status.h" -#include "mongo/client/dbclientinterface.h" #include "mongo/dbtests/mock/mock_dbclient_connection.h" #include "mongo/dbtests/mock/mock_remote_db_server.h" #include "mongo/stdx/unordered_map.h" diff --git a/src/mongo/dbtests/mock/mock_dbclient_connection.h b/src/mongo/dbtests/mock/mock_dbclient_connection.h index 04af61ee55f..bcecd30d37f 100644 --- a/src/mongo/dbtests/mock/mock_dbclient_connection.h +++ b/src/mongo/dbtests/mock/mock_dbclient_connection.h @@ -30,7 +30,7 @@ #include <string> #include <vector> -#include "mongo/client/dbclientinterface.h" +#include "mongo/client/dbclient_connection.h" #include "mongo/dbtests/mock/mock_remote_db_server.h" namespace mongo { @@ -73,15 +73,15 @@ public: int nToSkip = 0, const mongo::BSONObj* fieldsToReturn = 0, int queryOptions = 0, - int batchSize = 0); + int batchSize = 0) override; - uint64_t getSockCreationMicroSec() const; + uint64_t getSockCreationMicroSec() const override; - virtual void insert(const std::string& ns, BSONObj obj, int flags = 0); + void insert(const std::string& ns, BSONObj obj, int flags = 0) override; - virtual void insert(const std::string& ns, const std::vector<BSONObj>& objList, int flags = 0); + void insert(const std::string& ns, const std::vector<BSONObj>& objList, int flags = 0) override; - virtual void remove(const std::string& ns, Query query, int flags = 0); + void remove(const std::string& ns, Query query, int flags = 0) override; // // Getters @@ -89,7 +89,7 @@ public: mongo::ConnectionString::ConnectionType type() const; bool isFailed() const; - double getSoTimeout() const; + double getSoTimeout() const override; std::string getServerAddress() const; std::string toString() const; @@ -100,24 +100,24 @@ public: const std::string& ns, mongo::Query query, const mongo::BSONObj* fieldsToReturn = 0, - int queryOptions = 0); + int queryOptions = 0) override; unsigned long long query(stdx::function<void(mongo::DBClientCursorBatchIterator&)> f, const std::string& ns, mongo::Query query, const mongo::BSONObj* fieldsToReturn = 0, - int queryOptions = 0); + int queryOptions = 0) override; // // Unsupported methods (these are pure virtuals in the base class) // - void killCursor(const NamespaceString& ns, long long cursorID); + void killCursor(const NamespaceString& ns, long long cursorID) override; bool call(mongo::Message& toSend, mongo::Message& response, bool assertOk, - std::string* actualServer); - void say(mongo::Message& toSend, bool isRetry = false, std::string* actualServer = 0); + std::string* actualServer) override; + void say(mongo::Message& toSend, bool isRetry = false, std::string* actualServer = 0) override; bool lazySupported() const; private: diff --git a/src/mongo/dbtests/mock/mock_dbclient_cursor.h b/src/mongo/dbtests/mock/mock_dbclient_cursor.h index 762bd77b7c2..2a0561c781b 100644 --- a/src/mongo/dbtests/mock/mock_dbclient_cursor.h +++ b/src/mongo/dbtests/mock/mock_dbclient_cursor.h @@ -30,8 +30,8 @@ #pragma once -#include "mongo/client/dbclientcursor.h" -#include "mongo/client/dbclientmockcursor.h" +#include "mongo/client/dbclient_cursor.h" +#include "mongo/client/dbclient_mockcursor.h" namespace mongo { diff --git a/src/mongo/dbtests/mock/mock_remote_db_server.h b/src/mongo/dbtests/mock/mock_remote_db_server.h index e17f69bfd63..3c147220668 100644 --- a/src/mongo/dbtests/mock/mock_remote_db_server.h +++ b/src/mongo/dbtests/mock/mock_remote_db_server.h @@ -30,7 +30,8 @@ #include <string> #include <vector> -#include "mongo/client/dbclientinterface.h" +#include "mongo/client/connection_string.h" +#include "mongo/client/query.h" #include "mongo/db/jsobj.h" #include "mongo/rpc/unique_message.h" #include "mongo/stdx/unordered_map.h" diff --git a/src/mongo/dbtests/mock_dbclient_conn_test.cpp b/src/mongo/dbtests/mock_dbclient_conn_test.cpp index 5c02d561541..cc90aa3586a 100644 --- a/src/mongo/dbtests/mock_dbclient_conn_test.cpp +++ b/src/mongo/dbtests/mock_dbclient_conn_test.cpp @@ -31,7 +31,6 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientinterface.h" #include "mongo/db/jsobj.h" #include "mongo/dbtests/mock/mock_dbclient_connection.h" #include "mongo/unittest/unittest.h" diff --git a/src/mongo/dbtests/mock_replica_set_test.cpp b/src/mongo/dbtests/mock_replica_set_test.cpp index 999e8bc631d..548a69b0ab7 100644 --- a/src/mongo/dbtests/mock_replica_set_test.cpp +++ b/src/mongo/dbtests/mock_replica_set_test.cpp @@ -27,7 +27,6 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientinterface.h" #include "mongo/dbtests/mock/mock_dbclient_connection.h" #include "mongo/dbtests/mock/mock_replica_set.h" #include "mongo/unittest/unittest.h" diff --git a/src/mongo/dbtests/plan_ranking.cpp b/src/mongo/dbtests/plan_ranking.cpp index a2467126c1a..01d7b6af527 100644 --- a/src/mongo/dbtests/plan_ranking.cpp +++ b/src/mongo/dbtests/plan_ranking.cpp @@ -34,7 +34,7 @@ #include <iostream> -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/client.h" diff --git a/src/mongo/dbtests/query_stage_and.cpp b/src/mongo/dbtests/query_stage_and.cpp index ea845004d55..d18346cb21b 100644 --- a/src/mongo/dbtests/query_stage_and.cpp +++ b/src/mongo/dbtests/query_stage_and.cpp @@ -34,7 +34,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/index_catalog.h" diff --git a/src/mongo/dbtests/query_stage_collscan.cpp b/src/mongo/dbtests/query_stage_collscan.cpp index f13b997bdb5..5b071ba838c 100644 --- a/src/mongo/dbtests/query_stage_collscan.cpp +++ b/src/mongo/dbtests/query_stage_collscan.cpp @@ -32,7 +32,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/client.h" diff --git a/src/mongo/dbtests/query_stage_count_scan.cpp b/src/mongo/dbtests/query_stage_count_scan.cpp index 7e243068ae6..dbddae9b3b3 100644 --- a/src/mongo/dbtests/query_stage_count_scan.cpp +++ b/src/mongo/dbtests/query_stage_count_scan.cpp @@ -29,7 +29,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/index_catalog.h" diff --git a/src/mongo/dbtests/query_stage_distinct.cpp b/src/mongo/dbtests/query_stage_distinct.cpp index 6f9b2a5b5cd..1fb9aad1350 100644 --- a/src/mongo/dbtests/query_stage_distinct.cpp +++ b/src/mongo/dbtests/query_stage_distinct.cpp @@ -28,7 +28,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/index_catalog.h" diff --git a/src/mongo/dbtests/query_stage_fetch.cpp b/src/mongo/dbtests/query_stage_fetch.cpp index 3ddf6b6e630..a2a77702e19 100644 --- a/src/mongo/dbtests/query_stage_fetch.cpp +++ b/src/mongo/dbtests/query_stage_fetch.cpp @@ -32,7 +32,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/client.h" diff --git a/src/mongo/dbtests/query_stage_ixscan.cpp b/src/mongo/dbtests/query_stage_ixscan.cpp index 0e67b949c94..9449da1e3b0 100644 --- a/src/mongo/dbtests/query_stage_ixscan.cpp +++ b/src/mongo/dbtests/query_stage_ixscan.cpp @@ -28,7 +28,6 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientinterface.h" #include "mongo/db/catalog/index_catalog.h" #include "mongo/db/client.h" #include "mongo/db/db_raii.h" diff --git a/src/mongo/dbtests/query_stage_keep.cpp b/src/mongo/dbtests/query_stage_keep.cpp index 5a40ec12cc4..76ca9a0f78c 100644 --- a/src/mongo/dbtests/query_stage_keep.cpp +++ b/src/mongo/dbtests/query_stage_keep.cpp @@ -32,7 +32,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/client.h" diff --git a/src/mongo/dbtests/query_stage_limit_skip.cpp b/src/mongo/dbtests/query_stage_limit_skip.cpp index 103f5932255..c38dc215116 100644 --- a/src/mongo/dbtests/query_stage_limit_skip.cpp +++ b/src/mongo/dbtests/query_stage_limit_skip.cpp @@ -33,7 +33,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/client.h" #include "mongo/db/exec/limit.h" #include "mongo/db/exec/plan_stage.h" diff --git a/src/mongo/dbtests/query_stage_merge_sort.cpp b/src/mongo/dbtests/query_stage_merge_sort.cpp index 44708b006b3..59308a05fa5 100644 --- a/src/mongo/dbtests/query_stage_merge_sort.cpp +++ b/src/mongo/dbtests/query_stage_merge_sort.cpp @@ -28,7 +28,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/index_catalog.h" diff --git a/src/mongo/dbtests/query_stage_sort.cpp b/src/mongo/dbtests/query_stage_sort.cpp index cfa651d2ed9..9ff58f996cd 100644 --- a/src/mongo/dbtests/query_stage_sort.cpp +++ b/src/mongo/dbtests/query_stage_sort.cpp @@ -28,7 +28,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/bson/dotted_path_support.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" diff --git a/src/mongo/dbtests/query_stage_tests.cpp b/src/mongo/dbtests/query_stage_tests.cpp index 002a213791b..396b476df8c 100644 --- a/src/mongo/dbtests/query_stage_tests.cpp +++ b/src/mongo/dbtests/query_stage_tests.cpp @@ -28,7 +28,7 @@ #include "mongo/platform/basic.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/index_catalog.h" diff --git a/src/mongo/dbtests/querytests.cpp b/src/mongo/dbtests/querytests.cpp index d954cf9d727..8e073b3d0b6 100644 --- a/src/mongo/dbtests/querytests.cpp +++ b/src/mongo/dbtests/querytests.cpp @@ -31,7 +31,7 @@ #include <boost/optional.hpp> #include <iostream> -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/client.h" #include "mongo/db/clientcursor.h" diff --git a/src/mongo/dbtests/replica_set_monitor_test.cpp b/src/mongo/dbtests/replica_set_monitor_test.cpp index 0666822dc42..daddf00ce5e 100644 --- a/src/mongo/dbtests/replica_set_monitor_test.cpp +++ b/src/mongo/dbtests/replica_set_monitor_test.cpp @@ -33,7 +33,6 @@ #include "mongo/client/connpool.h" #include "mongo/client/dbclient_rs.h" -#include "mongo/client/dbclientinterface.h" #include "mongo/client/replica_set_monitor.h" #include "mongo/client/replica_set_monitor_internal.h" #include "mongo/dbtests/mock/mock_conn_registry.h" diff --git a/src/mongo/dbtests/updatetests.cpp b/src/mongo/dbtests/updatetests.cpp index 7b62f5ad4a0..fa2a8ca8b2e 100644 --- a/src/mongo/dbtests/updatetests.cpp +++ b/src/mongo/dbtests/updatetests.cpp @@ -34,7 +34,7 @@ #include <iostream> #include "mongo/bson/mutable/mutable_bson_test_utils.h" -#include "mongo/client/dbclientcursor.h" +#include "mongo/client/dbclient_cursor.h" #include "mongo/db/bson/dotted_path_support.h" #include "mongo/db/client.h" #include "mongo/db/db.h" |