mongoc_database_create_collection should set read prefs PRIMARY

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If mongoc_database_create_collection is called with a database whose read prefs are configured to something besides PRIMARY, the "create" command can be wrongly run on a secondary. This contradicts the Server Selection Spec.

      Check for other command helpers with the same bug.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: