diff options
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 |