summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/internal_plans.h
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2021-04-06 09:18:10 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-06 13:47:03 +0000
commit9813adfb617761dc9d37a841138754ab3177fffd (patch)
tree928f28b2d674a185b3d3a697883a484a38b8aad1 /src/mongo/db/query/internal_plans.h
parent18081d9a2125d2ed9464272fbe7468b83063f9e1 (diff)
downloadmongo-9813adfb617761dc9d37a841138754ab3177fffd.tar.gz
SERVER-55559 StorageInterfaceImpl should use bounded collection scans on clustered collections
Diffstat (limited to 'src/mongo/db/query/internal_plans.h')
-rw-r--r--src/mongo/db/query/internal_plans.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/query/internal_plans.h b/src/mongo/db/query/internal_plans.h
index b077e663204..920f964868b 100644
--- a/src/mongo/db/query/internal_plans.h
+++ b/src/mongo/db/query/internal_plans.h
@@ -68,15 +68,17 @@ public:
};
/**
- * Returns a collection scan. Caller owns pointer.
+ * Returns a collection scan. Refer to CollectionScanParams for usage of 'minRecord' and
+ * 'maxRecord'.
*/
static std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> collectionScan(
OperationContext* opCtx,
- StringData ns,
const CollectionPtr* collection,
PlanYieldPolicy::YieldPolicy yieldPolicy,
const Direction direction = FORWARD,
- boost::optional<RecordId> resumeAfterRecordId = boost::none);
+ boost::optional<RecordId> resumeAfterRecordId = boost::none,
+ boost::optional<RecordId> minRecord = boost::none,
+ boost::optional<RecordId> maxRecord = boost::none);
/**
* Returns a FETCH => DELETE plan.