diff options
author | Qingyang Chen <qingyang.chen@10gen.com> | 2015-07-06 12:02:37 -0400 |
---|---|---|
committer | Qingyang Chen <qingyang.chen@10gen.com> | 2015-07-09 12:46:34 -0400 |
commit | d1cb71465274bcb5f3bc962ef2740cf985f32113 (patch) | |
tree | fbffc4a780d4eaa9874e1753796f851b0f0cbb91 /src/mongo/db/clientcursor.h | |
parent | d764e3e6cf1d8a7d510df2f724282f7a053cecda (diff) | |
download | mongo-d1cb71465274bcb5f3bc962ef2740cf985f32113.tar.gz |
SERVER-18936 skip, limit, and batchsize use 64-bit variables
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r-- | src/mongo/db/clientcursor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h index a145802e985..c8bd1853768 100644 --- a/src/mongo/db/clientcursor.h +++ b/src/mongo/db/clientcursor.h @@ -170,13 +170,13 @@ public: } // Used by ops/query.cpp to stash how many results have been returned by a query. - int pos() const { + long long pos() const { return _pos; } - void incPos(int n) { + void incPos(long long n) { _pos += n; } - void setPos(int n) { + void setPos(long long n) { _pos = n; } @@ -256,7 +256,7 @@ private: bool _countedYet; // How many objects have been returned by the find() so far? - int _pos; + long long _pos; // If this cursor was created by a find operation, '_query' holds the query predicate for // the find. If this cursor was created by a command (e.g. the aggregate command), then |