summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbdirectclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/dbdirectclient.h')
-rw-r--r--src/mongo/db/dbdirectclient.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/mongo/db/dbdirectclient.h b/src/mongo/db/dbdirectclient.h
index 9ff0dc9cd80..0554334d6fd 100644
--- a/src/mongo/db/dbdirectclient.h
+++ b/src/mongo/db/dbdirectclient.h
@@ -58,13 +58,15 @@ public:
// XXX: is this valid or useful?
void setOpCtx(OperationContext* opCtx);
- virtual std::unique_ptr<DBClientCursor> query(const NamespaceStringOrUUID& nsOrUuid,
- Query query,
- int nToReturn = 0,
- int nToSkip = 0,
- const BSONObj* fieldsToReturn = nullptr,
- int queryOptions = 0,
- int batchSize = 0);
+ virtual std::unique_ptr<DBClientCursor> query(
+ const NamespaceStringOrUUID& nsOrUuid,
+ Query query,
+ int nToReturn = 0,
+ int nToSkip = 0,
+ const BSONObj* fieldsToReturn = nullptr,
+ int queryOptions = 0,
+ int batchSize = 0,
+ boost::optional<BSONObj> readConcernObj = boost::none);
virtual bool isFailed() const;
@@ -85,7 +87,8 @@ public:
const BSONObj& query = BSONObj(),
int options = 0,
int limit = 0,
- int skip = 0);
+ int skip = 0,
+ boost::optional<BSONObj> readConcernObj = boost::none);
virtual ConnectionString::ConnectionType type() const;