summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/dbhelper_tests.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2018-08-14 13:38:17 -0400
committerMatthew Russotto <matthew.russotto@10gen.com>2018-08-14 13:38:17 -0400
commit41005a73c8534953c4627b2a9d82a776e4276f1f (patch)
treea77a2466ab4d7ccc418880c44e0ba7ecca6f2ef0 /src/mongo/dbtests/dbhelper_tests.cpp
parent63c586c5571176a5a68d7d18e836e38e0a905211 (diff)
downloadmongo-41005a73c8534953c4627b2a9d82a776e4276f1f.tar.gz
SERVER-36094 Make DBClientBase::query() take an NamespaceStringOrUUID
Diffstat (limited to 'src/mongo/dbtests/dbhelper_tests.cpp')
-rw-r--r--src/mongo/dbtests/dbhelper_tests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/dbhelper_tests.cpp b/src/mongo/dbtests/dbhelper_tests.cpp
index 975a446894a..959b62db3e3 100644
--- a/src/mongo/dbtests/dbhelper_tests.cpp
+++ b/src/mongo/dbtests/dbhelper_tests.cpp
@@ -75,7 +75,8 @@ private:
BSONArray docs(OperationContext* opCtx) const {
DBDirectClient client(opCtx);
- unique_ptr<DBClientCursor> cursor = client.query(ns, Query().hint(BSON("_id" << 1)));
+ unique_ptr<DBClientCursor> cursor =
+ client.query(NamespaceString(ns), Query().hint(BSON("_id" << 1)));
BSONArrayBuilder bab;
while (cursor->more()) {
bab << cursor->next();