diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2013-12-02 14:31:19 -0500 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2013-12-04 10:37:37 -0500 |
commit | f44e121b665e09ec634c4e7006a14fb1507bb274 (patch) | |
tree | de3cdbd2a670ca1297bf2ac5984448b586832108 /src/mongo/db/exec/collection_scan_common.h | |
parent | 85bc0574d3b61594cc861bdaee167d682606902b (diff) | |
download | mongo-f44e121b665e09ec634c4e7006a14fb1507bb274.tar.gz |
SERVER-10026 add maxScan support for new query
Diffstat (limited to 'src/mongo/db/exec/collection_scan_common.h')
-rw-r--r-- | src/mongo/db/exec/collection_scan_common.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/exec/collection_scan_common.h b/src/mongo/db/exec/collection_scan_common.h index 880e7b56fc7..9c88e7653f6 100644 --- a/src/mongo/db/exec/collection_scan_common.h +++ b/src/mongo/db/exec/collection_scan_common.h @@ -40,7 +40,8 @@ namespace mongo { CollectionScanParams() : start(DiskLoc()), direction(FORWARD), - tailable(false) { } + tailable(false), + maxScan(0) { } // What collection? string ns; @@ -53,6 +54,9 @@ namespace mongo { // Do we want the scan to be 'tailable'? Only meaningful if the collection is capped. bool tailable; + + // If non-zero, how many documents will we look at? + size_t maxScan; }; } // namespace mongo |