summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_base.h
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/client/dbclient_base.h
parent63c586c5571176a5a68d7d18e836e38e0a905211 (diff)
downloadmongo-41005a73c8534953c4627b2a9d82a776e4276f1f.tar.gz
SERVER-36094 Make DBClientBase::query() take an NamespaceStringOrUUID
Diffstat (limited to 'src/mongo/client/dbclient_base.h')
-rw-r--r--src/mongo/client/dbclient_base.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/client/dbclient_base.h b/src/mongo/client/dbclient_base.h
index ef8333fcf34..ffb4c9d0640 100644
--- a/src/mongo/client/dbclient_base.h
+++ b/src/mongo/client/dbclient_base.h
@@ -71,7 +71,7 @@ std::string nsGetCollection(const std::string& ns);
* them as "final" or "override" as appropriate.
*/
class DBClientQueryInterface {
- virtual std::unique_ptr<DBClientCursor> query(const std::string& ns,
+ virtual std::unique_ptr<DBClientCursor> query(const NamespaceStringOrUUID& nsOrUuid,
Query query,
int nToReturn = 0,
int nToSkip = 0,
@@ -80,13 +80,13 @@ class DBClientQueryInterface {
int batchSize = 0) = 0;
virtual unsigned long long query(stdx::function<void(const BSONObj&)> f,
- const std::string& ns,
+ const NamespaceStringOrUUID& nsOrUuid,
Query query,
const BSONObj* fieldsToReturn = 0,
int queryOptions = 0) = 0;
virtual unsigned long long query(stdx::function<void(DBClientCursorBatchIterator&)> f,
- const std::string& ns,
+ const NamespaceStringOrUUID& nsOrUuid,
Query query,
const BSONObj* fieldsToReturn = 0,
int queryOptions = 0) = 0;
@@ -572,7 +572,7 @@ public:
@return cursor. 0 if error (connection failure)
@throws AssertionException
*/
- std::unique_ptr<DBClientCursor> query(const std::string& ns,
+ std::unique_ptr<DBClientCursor> query(const NamespaceStringOrUUID& nsOrUuid,
Query query,
int nToReturn = 0,
int nToSkip = 0,
@@ -590,13 +590,13 @@ public:
blocks, perhaps to avoid granular locking and such.
*/
unsigned long long query(stdx::function<void(const BSONObj&)> f,
- const std::string& ns,
+ const NamespaceStringOrUUID& nsOrUuid,
Query query,
const BSONObj* fieldsToReturn = 0,
int queryOptions = 0) final;
unsigned long long query(stdx::function<void(DBClientCursorBatchIterator&)> f,
- const std::string& ns,
+ const NamespaceStringOrUUID& nsOrUuid,
Query query,
const BSONObj* fieldsToReturn = 0,
int queryOptions = 0) override;