summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/stage_builder.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2018-11-16 18:06:14 -0500
committerDavid Storch <david.storch@10gen.com>2018-11-27 17:12:22 -0500
commit6efa4ed0820b6f6e3a2615dc5f42e13ce3415ad8 (patch)
tree464a742478e5f3119632114cca1d8508b63bb576 /src/mongo/db/query/stage_builder.cpp
parentf588dad3e3b16a9e717cf457485dad3e7f45ae1d (diff)
downloadmongo-6efa4ed0820b6f6e3a2615dc5f42e13ce3415ad8.tar.gz
SERVER-37448 Make remaining PlanStages check catalog validity on restore.
Handles COUNT_SCAN, DISTINCT_SCAN, IDHACK, and TEXT_OR.
Diffstat (limited to 'src/mongo/db/query/stage_builder.cpp')
-rw-r--r--src/mongo/db/query/stage_builder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/stage_builder.cpp b/src/mongo/db/query/stage_builder.cpp
index 0ea2780935e..c0bc1958371 100644
--- a/src/mongo/db/query/stage_builder.cpp
+++ b/src/mongo/db/query/stage_builder.cpp
@@ -318,7 +318,7 @@ PlanStage* buildStages(OperationContext* opCtx,
// We use the node's internal name, keyPattern and multikey details here. For $**
// indexes, these may differ from the information recorded in the index's descriptor.
- DistinctParams params{*descriptor,
+ DistinctParams params{descriptor,
dn->index.identifier.catalogName,
dn->index.keyPattern,
dn->index.multikeyPaths,
@@ -343,7 +343,7 @@ PlanStage* buildStages(OperationContext* opCtx,
// We use the node's internal name, keyPattern and multikey details here. For $**
// indexes, these may differ from the information recorded in the index's descriptor.
- CountScanParams params{*descriptor,
+ CountScanParams params{descriptor,
csn->index.identifier.catalogName,
csn->index.keyPattern,
csn->index.multikeyPaths,