[CDRIVER-885] Silent early exit from _mongoc_write_command_execute Created: 28/Sep/15  Updated: 24/Nov/15  Resolved: 24/Nov/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3.0-beta0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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?



 Comments   
Comment by A. Jesse Jiryu Davis [ 24/Nov/15 ]

Fixed in 89d543 with CDRIVER-906.

Generated at Wed Feb 07 21:10:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.