Unverified Commit 9eba451d authored by vector-of-bool's avatar vector-of-bool Committed by GitHub
Browse files

CDRIVER-3893: Conditionally support $merge and $out execution on secondaries (#904)

* Allow readPreference:secondary with $merge and $out. [Finish CDRIVER-3893, CDRIVER-4224, and CDRIVER-4195]
* Pass around the effectively chosen read mode used in server selection back to the command builder
* Update doc func name
* Fix duplicate doc comments
* Consolidate duplicate state in suitable_servers()
* Less magic numbers
* Clarify wire version checks
* Force primary read preference if talking to a single server older than 5.0
parent ee64af14
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment