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

Use OP_MSG for unacknowledged writes

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: 1.9.0
    • Component/s: libmongoc
    • None

      Reading the code, it appears to me that _mongoc_write_command_execute uses OP_MSG iff the wire version is at least 6, even for unacknowledged write concerns. It calls mongoc_cluster_run_opmsg which always sets flags to 0. It doesn't set the moreToCome flag, and it always expects a server response.

      Update this: set moreToCome to 1, use an implicit session even if the user passed an explicit one (ignore explicit sessions with unack'ed writes), and don't expect a server response.

            Assignee:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: