-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
To be fully spec compliant, the MongoDB\Driver\Session object needs to expose transaction options for consumption in downstream libraries. This is needed in PHPLIB to correctly run server selection while in a transaction. For now, falling back to a primary read preference works since that's the only read preference allowed in a transaction, but if this restriction is eventually relaxed, PHPLIB will have to use the transaction's read preference to perform server selection.
- depends on
-
CDRIVER-3358 Expose transaction options on session object
- Closed
- is depended on by
-
PHPLIB-476 Consider transaction read preference for server selection
- Closed
- related to
-
PHPC-1879 Session::getTransactionOptions() leaks mongoc_transaction_opt_t
- Closed