Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1669

read_preference in start_transaction()

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.7.2
    • Component/s: Query Operations
    • None

      I was playing with pymongo and transactions a little...

      Why can I pass read_preference to start_transaction() when transactions only allow primary anyway? Should docs at least mention this?
      http://api.mongodb.com/python/current/api/pymongo/client_session.html#pymongo.client_session.TransactionOptions
      http://api.mongodb.com/python/current/api/pymongo/client_session.html#pymongo.client_session.ClientSession.start_transaction

            Assignee:
            Unassigned Unassigned
            Reporter:
            henrik.ingo@mongodb.com Henrik Ingo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: