diff options
Diffstat (limited to 'src/mongo/db/exec/shard_filter.cpp')
-rw-r--r-- | src/mongo/db/exec/shard_filter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/exec/shard_filter.cpp b/src/mongo/db/exec/shard_filter.cpp index 8388689cbc6..9c2f142622b 100644 --- a/src/mongo/db/exec/shard_filter.cpp +++ b/src/mongo/db/exec/shard_filter.cpp @@ -35,7 +35,7 @@ #include "mongo/db/exec/filter.h" #include "mongo/db/exec/scoped_timer.h" #include "mongo/db/exec/working_set_common.h" -#include "mongo/db/s/collection_metadata.h" +#include "mongo/db/s/metadata_manager.h" #include "mongo/s/shard_key_pattern.h" #include "mongo/stdx/memory.h" #include "mongo/util/log.h" @@ -51,10 +51,10 @@ using stdx::make_unique; const char* ShardFilterStage::kStageType = "SHARDING_FILTER"; ShardFilterStage::ShardFilterStage(OperationContext* opCtx, - const shared_ptr<CollectionMetadata>& metadata, + ScopedCollectionMetadata metadata, WorkingSet* ws, PlanStage* child) - : PlanStage(kStageType, opCtx), _ws(ws), _metadata(metadata) { + : PlanStage(kStageType, opCtx), _ws(ws), _metadata(std::move(metadata)) { _children.emplace_back(child); } |