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

Silent early exit from _mongoc_write_command_execute

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

      The driver will exit without writing data or reporting an error:

         max_wire_version = mongoc_cluster_node_max_wire_version (&client->cluster, hint);
         if (max_wire_version == -1) {
            EXIT;
         }
      

      The checked call to _mongoc_client_preselect, above, should ensure max_wire_version is non-negative, so this should be an ALWAYS_ASSERT instead of a regular check?

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

              Created:
              Updated:
              Resolved: