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

mongoc_database_create_collection should set read prefs PRIMARY

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.4.0
    • None
    • libmongoc
    • None

    Description

      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.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: