Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1937

ReadPreference for Manager::selectServer() should be optional and default to primary

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.11.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      If the read preference argument for mongoc_client_select_server is null, libmongoc will attempt select a primary by default. There is no reason that Manager::selectServer() cannot do the same.

      As an added benefit, this would simplify many uses of this method within PHPC and PHPLIB, which commonly construct a primary read preference.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: