summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_multiplan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/query_stage_multiplan.cpp')
-rw-r--r--src/mongo/dbtests/query_stage_multiplan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/query_stage_multiplan.cpp b/src/mongo/dbtests/query_stage_multiplan.cpp
index 83337ca69ec..0f946280824 100644
--- a/src/mongo/dbtests/query_stage_multiplan.cpp
+++ b/src/mongo/dbtests/query_stage_multiplan.cpp
@@ -370,7 +370,7 @@ TEST_F(QueryStageMultiPlanTest, MPSBackupPlan) {
addIndex(BSON("b" << 1));
AutoGetCollectionForReadCommand ctx(_opCtx.get(), nss);
- Collection* collection = ctx.getCollection();
+ const Collection* collection = ctx.getCollection();
// Query for both 'a' and 'b' and sort on 'b'.
auto qr = std::make_unique<QueryRequest>(nss);
@@ -543,7 +543,7 @@ TEST_F(QueryStageMultiPlanTest, MPSSummaryStats) {
addIndex(BSON("foo" << -1 << "bar" << 1));
AutoGetCollectionForReadCommand ctx(_opCtx.get(), nss);
- Collection* coll = ctx.getCollection();
+ const Collection* coll = ctx.getCollection();
// Create the executor (Matching all documents).
auto qr = std::make_unique<QueryRequest>(nss);