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

Improve warning when automatic ctor/dtor are enabled

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build, libmongoc
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Automatically calling mongoc_init() and mongoc_cleanup() has been deprecated for a while, but for bc reasons it is still enabled by default.

      Unfortunately, this causes lots of issues when the client app does not actually call the functions, such as with SASL cleanup routines.

      During configuration, we should make it abundantly clear when sasl and automatic ctor/dtor is enabled, that this will result in issues.
      See for examples linked tickets

            Assignee:
            Unassigned Unassigned
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: