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

mongoc_cluster_node_reconnect must always destroy server description?

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Mac OSX Yosemite

      On a call to mongoc_cluster_node_reconnect() in mongoc-cluster.c, is it possible for

      • topology->single_threaded and
      • !(scanner_node->stream && cluster->requires_auth)

      to be true at the same time? Then mongoc_server_description_t *sd won't be set, but the function unconditionally calls mongoc_server_description_destroy() on function exit.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: