[SERVER-27664] Remove all usages of ShardConnection from commands_public.cpp Created: 12/Jan/17  Updated: 23/Mar/18  Resolved: 23/Mar/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.5.1
Fix Version/s: 3.7.4

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-13364 geoNear command doesn't handle versio... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-01-02, Sharding 2017-02-13, Sharding 2017-03-06, Sharding 2017-03-27, Sharding 2018-03-26, Sharding 2018-04-09
Participants:

 Description   

With the ability of mongod to interpret the shardVersion command parameter we no longer need to use ShardConnection to set the shard version on the connection itself for commands. Because of this all usages of ShardConnection outside of parallel.cpp should be removed and replaced with calls to the task executor instead.

The usage in parallel.cpp will go away with the removal of ParallelSortClusteredCursor.



 Comments   
Comment by Githook User [ 23/Mar/18 ]

Author:

{'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev', 'username': 'kaloianm'}

Message: SERVER-27664 Get rid of usages of ShardConnection in commands_public.cpp

Also gets rid of PublicGridCommand.
Branch: master
https://github.com/mongodb/mongo/commit/e06bf692e42a84eae9f74001d7f5677b91c26cad

Comment by Githook User [ 09/Mar/18 ]

Author:

{'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev', 'username': 'kaloianm'}

Message: SERVER-27664 Use scatterGatherVersionedTargetByRoutingTable for `geoNear` and 'filemd5`
Branch: master
https://github.com/mongodb/mongo/commit/fcd2d80236ab0a32247aa112e68c442cf25f7006

Comment by Githook User [ 05/Mar/18 ]

Author:

{'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev', 'username': 'kaloianm'}

Message: SERVER-27664 Use scatterGatherVersionedTargetByRoutingTable instead of passthrough in commands_public.cpp

This change replaces all usages of passthrough, which are used for
sharded and unsharded collection routing from commands_public.cpp. All
remaining usages of passthrough will be replaced with direct
Shard::runCommand instead.
Branch: master
https://github.com/mongodb/mongo/commit/763f5905c2c8cc9ce67387434f7343b3250f3e9d

Generated at Thu Feb 08 04:15:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.