diff options
Diffstat (limited to 'src/mongo/db/exec/collection_scan_common.h')
-rw-r--r-- | src/mongo/db/exec/collection_scan_common.h | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/src/mongo/db/exec/collection_scan_common.h b/src/mongo/db/exec/collection_scan_common.h index 9b327598fa5..f5766e0a0d6 100644 --- a/src/mongo/db/exec/collection_scan_common.h +++ b/src/mongo/db/exec/collection_scan_common.h @@ -32,35 +32,32 @@ namespace mongo { - class Collection; +class Collection; - struct CollectionScanParams { - enum Direction { - FORWARD = 1, - BACKWARD = -1, - }; +struct CollectionScanParams { + enum Direction { + FORWARD = 1, + BACKWARD = -1, + }; - CollectionScanParams() : collection(NULL), - start(RecordId()), - direction(FORWARD), - tailable(false), - maxScan(0) { } + CollectionScanParams() + : collection(NULL), start(RecordId()), direction(FORWARD), tailable(false), maxScan(0) {} - // What collection? - // not owned - const Collection* collection; + // What collection? + // not owned + const Collection* collection; - // isNull by default. If you specify any value for this, you're responsible for the RecordId - // not being invalidated before the first call to work(...). - RecordId start; + // isNull by default. If you specify any value for this, you're responsible for the RecordId + // not being invalidated before the first call to work(...). + RecordId start; - Direction direction; + Direction direction; - // Do we want the scan to be 'tailable'? Only meaningful if the collection is capped. - bool tailable; + // 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; - }; + // If non-zero, how many documents will we look at? + size_t maxScan; +}; } // namespace mongo |