Use OP_MSG for unacknowledged writes

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.10.0
    • Affects Version/s: 1.9.0
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: