[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:
Related
is related to CDRIVER-1233 Crash after Kerberos plugin cleanup r... Closed

 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.
See for examples linked tickets


Generated at Wed Feb 07 21:13:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.