Here sharded_agg_helpers::attachCursorToPipeline attaches dbVersion even if we targeted by routing table. In this case, to comply with the shard versioning protocol, we only need to attach ShardVersion: X, but not dbVersion.
- is caused by
-
SERVER-77427 Avoid going through the network when a shard is targeting only itself for a $lookup subpipeline
- Closed