summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/shard_filter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/shard_filter.cpp')
-rw-r--r--src/mongo/db/exec/shard_filter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/shard_filter.cpp b/src/mongo/db/exec/shard_filter.cpp
index ed25ef0ad8e..3ca72e989a0 100644
--- a/src/mongo/db/exec/shard_filter.cpp
+++ b/src/mongo/db/exec/shard_filter.cpp
@@ -53,9 +53,9 @@ const char* ShardFilterStage::kStageType = "SHARDING_FILTER";
ShardFilterStage::ShardFilterStage(OperationContext* opCtx,
ScopedCollectionMetadata metadata,
WorkingSet* ws,
- PlanStage* child)
+ std::unique_ptr<PlanStage> child)
: PlanStage(kStageType, opCtx), _ws(ws), _shardFilterer(std::move(metadata)) {
- _children.emplace_back(child);
+ _children.emplace_back(std::move(child));
}
ShardFilterStage::~ShardFilterStage() {}