mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
Revert "SERVER-47530 Query plan executor: Convert usage of getCollectionDescription_DEPRECATED to getCollectionDescription"
This reverts commit 7fa85b78aa
.
This commit is contained in:
parent
2f9cbb7f81
commit
4b49aa1239
@ -1149,7 +1149,7 @@ std::unique_ptr<Pipeline, PipelineDeleter> attachCursorToPipeline(Pipeline* owne
|
||||
// If the db is local, this may be a change stream examining the oplog. We know the
|
||||
// oplog (and any other local collections) will not be sharded.
|
||||
return expCtx->mongoProcessInterface->attachCursorSourceToPipelineForLocalRead(
|
||||
pipelineToTarget.release());
|
||||
pipeline.release());
|
||||
}
|
||||
return targetShardsAndAddMergeCursors(expCtx, pipelineToTarget.release());
|
||||
});
|
||||
|
@ -287,8 +287,8 @@ void fillOutPlannerParams(OperationContext* opCtx,
|
||||
|
||||
// If the caller wants a shard filter, make sure we're actually sharded.
|
||||
if (plannerParams->options & QueryPlannerParams::INCLUDE_SHARD_FILTER) {
|
||||
auto collDesc =
|
||||
CollectionShardingState::get(opCtx, canonicalQuery->nss())->getCollectionDescription();
|
||||
auto collDesc = CollectionShardingState::get(opCtx, canonicalQuery->nss())
|
||||
->getCollectionDescription_DEPRECATED();
|
||||
if (collDesc.isSharded()) {
|
||||
plannerParams->shardKey = collDesc.getKeyPattern();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user