diff options
author | yarai <yuta.arai@10gen.com> | 2018-10-02 13:06:27 -0400 |
---|---|---|
committer | yarai <yuta.arai@10gen.com> | 2018-10-15 11:44:17 -0400 |
commit | e62512d50329877c84a7b2404c8c6158479efede (patch) | |
tree | b22562f7b861997c3619fd96bfeede2480cf6a43 /src/mongo/db/query/internal_plans.cpp | |
parent | e5c39e225effd4a28937c32c84ac3dc0c1ceb355 (diff) | |
download | mongo-e62512d50329877c84a7b2404c8c6158479efede.tar.gz |
SERVER-37417 Plans using $** wildcard indices can return duplicate results
Diffstat (limited to 'src/mongo/db/query/internal_plans.cpp')
-rw-r--r-- | src/mongo/db/query/internal_plans.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/query/internal_plans.cpp b/src/mongo/db/query/internal_plans.cpp index 03ee028def0..b8e96f5b338 100644 --- a/src/mongo/db/query/internal_plans.cpp +++ b/src/mongo/db/query/internal_plans.cpp @@ -209,6 +209,7 @@ std::unique_ptr<PlanStage> InternalPlanner::_indexScan(OperationContext* opCtx, params.bounds.startKey = startKey; params.bounds.endKey = endKey; params.bounds.boundInclusion = boundInclusion; + params.shouldDedup = descriptor->isMultikey(opCtx); std::unique_ptr<PlanStage> root = stdx::make_unique<IndexScan>(opCtx, std::move(params), ws, nullptr); |