Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
Fully Compatible
-
Sharding 12 (04/01/16), Sharding 14 (05/13/16)
-
0
Description
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.
Attachments
Issue Links
- 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
-