diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-06-19 20:15:56 -0400 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-06-20 18:10:42 -0400 |
commit | 4132ecabfdc1de9b1fcc2df3188c089ad9c22e27 (patch) | |
tree | 6d5ea81aa79e361eb8c602ae9dc8279cbe941526 /src/mongo/client/dbclientcursor.h | |
parent | cfd7b89c89e715309eff5adca28b38893fe6a984 (diff) | |
download | mongo-4132ecabfdc1de9b1fcc2df3188c089ad9c22e27.tar.gz |
SERVER-35698 Uncap usersInfo output past 101 results
Diffstat (limited to 'src/mongo/client/dbclientcursor.h')
-rw-r--r-- | src/mongo/client/dbclientcursor.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/client/dbclientcursor.h b/src/mongo/client/dbclientcursor.h index 0601a3bf6ef..876d3f30db7 100644 --- a/src/mongo/client/dbclientcursor.h +++ b/src/mongo/client/dbclientcursor.h @@ -152,7 +152,8 @@ public: const std::string& ns, long long cursorId, int nToReturn, - int options); + int options, + std::vector<BSONObj> initialBatch = {}); virtual ~DBClientCursor(); @@ -224,11 +225,16 @@ private: int nToSkip, const BSONObj* fieldsToReturn, int queryOptions, - int bs); + int bs, + std::vector<BSONObj> initialBatch); int nextBatchSize(); struct Batch { + // TODO remove constructors after c++17 toolchain upgrade + Batch() = default; + Batch(std::vector<BSONObj> initial, size_t initialPos = 0) + : objs(std::move(initial)), pos(initialPos) {} std::vector<BSONObj> objs; size_t pos = 0; }; |