summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/find.h
diff options
context:
space:
mode:
authorQingyang Chen <qingyang.chen@10gen.com>2015-07-06 12:02:37 -0400
committerQingyang Chen <qingyang.chen@10gen.com>2015-07-09 12:46:34 -0400
commitd1cb71465274bcb5f3bc962ef2740cf985f32113 (patch)
treefbffc4a780d4eaa9874e1753796f851b0f0cbb91 /src/mongo/db/query/find.h
parentd764e3e6cf1d8a7d510df2f724282f7a053cecda (diff)
downloadmongo-d1cb71465274bcb5f3bc962ef2740cf985f32113.tar.gz
SERVER-18936 skip, limit, and batchsize use 64-bit variables
Diffstat (limited to 'src/mongo/db/query/find.h')
-rw-r--r--src/mongo/db/query/find.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/query/find.h b/src/mongo/db/query/find.h
index a3d1a246ab6..c4adc91b675 100644
--- a/src/mongo/db/query/find.h
+++ b/src/mongo/db/query/find.h
@@ -67,14 +67,14 @@ private:
*
* Should be called *after* adding to the result set rather than before.
*/
-bool enoughForFirstBatch(const LiteParsedQuery& pq, int numDocs, int bytesBuffered);
+bool enoughForFirstBatch(const LiteParsedQuery& pq, long long numDocs, int bytesBuffered);
/**
* Returns true if enough results have been prepared to stop adding more to a getMore batch.
*
* Should be called *after* adding to the result set rather than before.
*/
-bool enoughForGetMore(int ntoreturn, int numDocs, int bytesBuffered);
+bool enoughForGetMore(long long ntoreturn, long long numDocs, int bytesBuffered);
/**
* Whether or not the ClientCursor* is tailable.
@@ -115,8 +115,8 @@ bool shouldSaveCursorGetMore(PlanExecutor::ExecState finalState,
void beginQueryOp(OperationContext* txn,
const NamespaceString& nss,
const BSONObj& queryObj,
- int ntoreturn,
- int ntoskip);
+ long long ntoreturn,
+ long long ntoskip);
/**
* Fills out CurOp for "txn" with information regarding this query's execution.
@@ -129,7 +129,7 @@ void beginQueryOp(OperationContext* txn,
void endQueryOp(OperationContext* txn,
const PlanExecutor& exec,
int dbProfilingLevel,
- int numResults,
+ long long numResults,
CursorId cursorId);
/**