summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/getmore_request.h
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2015-06-12 13:47:05 -0400
committerEric Milkie <milkie@10gen.com>2015-07-06 09:45:11 -0400
commit2f6e7ad9733e4b0532038f193f071a37c321c26d (patch)
tree0059d9fea2af3deb83c581c1883469a22dccd3bd /src/mongo/db/query/getmore_request.h
parentb120fb18afa94796efd5092622bc5e759a1eea96 (diff)
downloadmongo-2f6e7ad9733e4b0532038f193f071a37c321c26d.tar.gz
SERVER-18384 process term parameter to find/getMore commands
Diffstat (limited to 'src/mongo/db/query/getmore_request.h')
-rw-r--r--src/mongo/db/query/getmore_request.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/db/query/getmore_request.h b/src/mongo/db/query/getmore_request.h
index 411f6b7ddca..afc481fd5e1 100644
--- a/src/mongo/db/query/getmore_request.h
+++ b/src/mongo/db/query/getmore_request.h
@@ -47,7 +47,10 @@ struct GetMoreRequest {
/**
* Construct from values for each field.
*/
- GetMoreRequest(NamespaceString namespaceString, CursorId id, boost::optional<int> batch);
+ GetMoreRequest(NamespaceString namespaceString,
+ CursorId id,
+ boost::optional<int> sizeOfBatch,
+ boost::optional<long long> term);
/**
* Construct a GetMoreRequest from the command specification and db name.
@@ -70,6 +73,9 @@ struct GetMoreRequest {
// as fit within the byte limit.
const boost::optional<int> batchSize;
+ // Only internal queries from replication will typically have a term.
+ const boost::optional<long long> term;
+
private:
/**
* Returns a non-OK status if there are semantic errors in the parsed request