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

mongoc_cluster_stream_for_server should not BSON_ASSERT on passed-in server_id

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.18.0, 1.18.0-alpha
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      mongoc_cluster_stream_for_server is called by user-facing methods like mongoc_client_command_simple_with_server_id. Rather than calling BSON_ASSERT and crash a user program, we should instead return a reasonable error if they pass in 0.

            Assignee:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Reporter:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: