-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
Sharding 12 (04/01/16), Sharding 14 (05/13/16)
-
0
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
ShardResolver provides
chooseWriteHost(OperationContext* txn, const std::string& shardName, ConnectionString* shardHost) const
method that duplicates ReplicaSetMonitor functionality. It is used to find a host to write which is either the only host of a MASTER connection or primary for a SET connection.
Instead the call
grid.shardRegistry()->getShard(txn, shardId)->getTargeter()->findHost(kPrimaryOnlyReadPreference)
will do the same.
- is duplicated by
-
SERVER-19027 Get rid of ShardResolver
-
- Closed
-
-
SERVER-24112 only include libs required for MONGO_INITIALIZER deps in cluster_write_op_conversion_test
-
- Closed
-