summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/planner_access.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/planner_access.h')
-rw-r--r--src/mongo/db/query/planner_access.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mongo/db/query/planner_access.h b/src/mongo/db/query/planner_access.h
index 6ea44830415..a5bfc04bb51 100644
--- a/src/mongo/db/query/planner_access.h
+++ b/src/mongo/db/query/planner_access.h
@@ -106,7 +106,7 @@ public:
static std::unique_ptr<QuerySolutionNode> makeCollectionScan(const CanonicalQuery& query,
bool tailable,
const QueryPlannerParams& params,
- int direction = 1);
+ int direction);
/**
* Return a plan that uses the provided index as a proxy for a collection scan.
@@ -126,7 +126,7 @@ public:
const BSONObj& endKey);
/**
- * Consructs a data access plan for 'query' which answers the predicate contained in 'root'.
+ * Constructs a data access plan for 'query' which answers the predicate contained in 'root'.
* Assumes the presence of the passed in indices. Planning behavior is controlled by the
* settings in 'params'.
*/
@@ -145,11 +145,9 @@ private:
struct ScanBuildingState {
ScanBuildingState(MatchExpression* theRoot,
const std::vector<IndexEntry>& indexList,
- bool inArrayOp,
- bool isCoveredNull = false)
+ bool inArrayOp)
: root(theRoot),
inArrayOperator(inArrayOp),
- isCoveredNullQuery(isCoveredNull),
indices(indexList),
currentScan(nullptr),
curChild(0),
@@ -188,9 +186,6 @@ private:
// Are we inside an array operator such as $elemMatch or $all?
bool inArrayOperator;
- // Is this a covered null query?
- bool isCoveredNullQuery;
-
// A list of relevant indices which 'root' may be tagged to use.
const std::vector<IndexEntry>& indices;