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

write_concern majority is not affected

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.90.0
    • Affects Version/s: 0.7.1
    • Component/s: None
    • None

      First, mongo_write_concern_init() set structure to 0 all.
      After I set write_concern->mode to "majority", call mongo_insert().

      In mongo_insert(), call mongo_choose_write_concern().
      In mongo_choose_write_concern()...

      ...
      *write_concern = custom_write_concern;
      ...
      if ( *write_concern && (*write_concern)->w < 1 ) {
      write_concern = 0; / do not generate getLastError request */
      }

      so, write_concern set to NULL.

      Check this please.

            Assignee:
            gjmurakami Gary Murakami
            Reporter:
            fate H K Baek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: