[CDRIVER-1965] Improve warning when automatic ctor/dtor are enabled Created: 25/Dec/16 Updated: 28/Feb/23 |
|
| Status: | Backlog |
| Project: | C Driver |
| Component/s: | Build, libmongoc |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Hannes Magnusson | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
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. |