summaryrefslogtreecommitdiff
path: root/src/mongo/db/query
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query')
-rw-r--r--src/mongo/db/query/expression_index.h2
-rw-r--r--src/mongo/db/query/index_bounds.h2
-rw-r--r--src/mongo/db/query/internal_plans.h2
-rw-r--r--src/mongo/db/query/query_planner.h4
-rw-r--r--src/mongo/db/query/query_planner_test_lib.h2
-rw-r--r--src/mongo/db/query/sbe_stage_builder_helpers.h4
6 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/query/expression_index.h b/src/mongo/db/query/expression_index.h
index 47b64bc6c7e..a07f1b12f71 100644
--- a/src/mongo/db/query/expression_index.h
+++ b/src/mongo/db/query/expression_index.h
@@ -66,7 +66,7 @@ public:
static std::vector<S2CellId> get2dsphereCovering(const S2Region& region);
static void S2CellIdsToIntervals(const std::vector<S2CellId>& intervalSet,
- const S2IndexVersion indexVersion,
+ S2IndexVersion indexVersion,
OrderedIntervalList* oilOut);
// Creates an ordered interval list from range intervals and
diff --git a/src/mongo/db/query/index_bounds.h b/src/mongo/db/query/index_bounds.h
index 47b66ffe697..056dbe6e513 100644
--- a/src/mongo/db/query/index_bounds.h
+++ b/src/mongo/db/query/index_bounds.h
@@ -266,7 +266,7 @@ public:
*/
static Location findIntervalForField(const BSONElement& elt,
const OrderedIntervalList& oil,
- const int expectedDirection,
+ int expectedDirection,
size_t* newIntervalIndex);
private:
diff --git a/src/mongo/db/query/internal_plans.h b/src/mongo/db/query/internal_plans.h
index 920f964868b..bc979ac9f34 100644
--- a/src/mongo/db/query/internal_plans.h
+++ b/src/mongo/db/query/internal_plans.h
@@ -75,7 +75,7 @@ public:
OperationContext* opCtx,
const CollectionPtr* collection,
PlanYieldPolicy::YieldPolicy yieldPolicy,
- const Direction direction = FORWARD,
+ Direction direction = FORWARD,
boost::optional<RecordId> resumeAfterRecordId = boost::none,
boost::optional<RecordId> minRecord = boost::none,
boost::optional<RecordId> maxRecord = boost::none);
diff --git a/src/mongo/db/query/query_planner.h b/src/mongo/db/query/query_planner.h
index dcd6ca6e542..ea2fabe7edb 100644
--- a/src/mongo/db/query/query_planner.h
+++ b/src/mongo/db/query/query_planner.h
@@ -119,7 +119,7 @@ public:
* the tree (i.e. index numbers in the tags refer to entries in this vector)
*/
static StatusWith<std::unique_ptr<PlanCacheIndexTree>> cacheDataFromTaggedTree(
- const MatchExpression* const taggedTree, const std::vector<IndexEntry>& relevantIndices);
+ const MatchExpression* taggedTree, const std::vector<IndexEntry>& relevantIndices);
/**
* @param filter -- an untagged MatchExpression
@@ -139,7 +139,7 @@ public:
* Does not take ownership of either filter or indexTree.
*/
static Status tagAccordingToCache(MatchExpression* filter,
- const PlanCacheIndexTree* const indexTree,
+ const PlanCacheIndexTree* indexTree,
const std::map<IndexEntry::Identifier, size_t>& indexMap);
/**
diff --git a/src/mongo/db/query/query_planner_test_lib.h b/src/mongo/db/query/query_planner_test_lib.h
index 66c27a2a4ad..e02fbc1e950 100644
--- a/src/mongo/db/query/query_planner_test_lib.h
+++ b/src/mongo/db/query/query_planner_test_lib.h
@@ -60,7 +60,7 @@ public:
* [1, 2) and (3, 4] and the index bounds on field 'b' are [-Infinity, Infinity].
*/
static Status boundsMatch(const BSONObj& testBounds,
- const IndexBounds trueBounds,
+ IndexBounds trueBounds,
bool relaxBoundsCheck);
/**
diff --git a/src/mongo/db/query/sbe_stage_builder_helpers.h b/src/mongo/db/query/sbe_stage_builder_helpers.h
index f79ff0911c9..431091dd99f 100644
--- a/src/mongo/db/query/sbe_stage_builder_helpers.h
+++ b/src/mongo/db/query/sbe_stage_builder_helpers.h
@@ -74,8 +74,8 @@ std::unique_ptr<sbe::EExpression> makeIsMember(std::unique_ptr<sbe::EExpression>
*/
std::unique_ptr<sbe::EExpression> generateNullOrMissing(const sbe::EVariable& var);
-std::unique_ptr<sbe::EExpression> generateNullOrMissing(const sbe::FrameId frameId,
- const sbe::value::SlotId slotId);
+std::unique_ptr<sbe::EExpression> generateNullOrMissing(sbe::FrameId frameId,
+ sbe::value::SlotId slotId);
/**
* Generates an EExpression that checks if the input expression is a non-numeric type _assuming