mongoc_server_description_host should return const pointer

XMLWordPrintableJSON

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

      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:
            Kevin Albertson
            Reporter:
            A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: