diff options
Diffstat (limited to 'src/mongo/db/pipeline/process_interface_shardsvr.cpp')
-rw-r--r-- | src/mongo/db/pipeline/process_interface_shardsvr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/process_interface_shardsvr.cpp b/src/mongo/db/pipeline/process_interface_shardsvr.cpp index 096c43cdaa0..562cd16fe3a 100644 --- a/src/mongo/db/pipeline/process_interface_shardsvr.cpp +++ b/src/mongo/db/pipeline/process_interface_shardsvr.cpp @@ -209,9 +209,9 @@ unique_ptr<Pipeline, PipelineDeleter> MongoInterfaceShardServer::attachCursorSou std::unique_ptr<ShardFilterer> MongoInterfaceShardServer::getShardFilterer( const boost::intrusive_ptr<ExpressionContext>& expCtx) const { const bool aggNsIsCollection = expCtx->uuid != boost::none; - auto shardingMetadata = CollectionShardingState::get(expCtx->opCtx, expCtx->ns) - ->getOrphansFilter(expCtx->opCtx, aggNsIsCollection); - return std::make_unique<ShardFiltererImpl>(std::move(shardingMetadata)); + auto collectionFilter = CollectionShardingState::get(expCtx->opCtx, expCtx->ns) + ->getOwnershipFilter(expCtx->opCtx, aggNsIsCollection); + return std::make_unique<ShardFiltererImpl>(std::move(collectionFilter)); } void MongoInterfaceShardServer::renameIfOptionsAndIndexesHaveNotChanged( |