Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1127

mongoc_database_create_collection should set read prefs PRIMARY

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • 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:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: