Method: Mongo::Session#txn_read_preference
- Defined in:
- lib/mongo/session.rb
#txn_read_preference ⇒ Hash
Get the read preference the session will use in the currently active transaction.
This is a driver style hash with underscore keys.
228 229 230 231 232 233 |
# File 'lib/mongo/session.rb', line 228 def txn_read_preference rp = [:read] || @client.read_preference Mongo::Lint.validate_underscore_read_preference(rp) rp end |