summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_rs_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclient_rs_test.cpp')
-rw-r--r--src/mongo/client/dbclient_rs_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/client/dbclient_rs_test.cpp b/src/mongo/client/dbclient_rs_test.cpp
index c04a2ddd7aa..2bbbc78858a 100644
--- a/src/mongo/client/dbclient_rs_test.cpp
+++ b/src/mongo/client/dbclient_rs_test.cpp
@@ -167,7 +167,7 @@ void assertWithBothQueryApis(DBClientReplicaSet& replConn,
replConn.find(FindCommandRequest{nss}, ReadPreferenceSetting{readPref});
assertionFunc(std::move(cursor));
- Query readPrefHolder;
+ client_deprecated::Query readPrefHolder;
readPrefHolder.readPref(readPref, BSONArray{});
cursor = replConn.query_DEPRECATED(nss, BSONObj{}, readPrefHolder);
assertionFunc(std::move(cursor));
@@ -186,7 +186,7 @@ void assertBothQueryApisThrow(DBClientReplicaSet& replConn,
ASSERT_THROWS(replConn.find(FindCommandRequest{nss}, ReadPreferenceSetting{readPref}),
AssertionException);
- Query readPrefHolder;
+ client_deprecated::Query readPrefHolder;
readPrefHolder.readPref(readPref, BSONArray{});
ASSERT_THROWS(replConn.query_DEPRECATED(nss, BSONObj{}, readPrefHolder), AssertionException);
}