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

mongoc_server_description_host should return const pointer

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0.0
    • Affects Version/s: 1.4.0
    • Component/s: libmongoc
    • None
    • Major Change

      Releasing a function with this signature was a mistake:

      mongoc_host_list_t *
      mongoc_server_description_host (const mongoc_server_description_t *description)
      

      The host list should be const.

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

              Created:
              Updated: