-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
We should deprecate the mongoc_init_ctor/dtor attribute constructor/destructor craziness. It's gcc specific (so code that works on *nix will fail on other platforms) and prevents users from setting necessary callbacks before calling init (like the memory interface).
Hannes added MONGOC_NO_AUTOMATIC_GLOBALS option in 1.3.5.
In 1.4, shout a warning if automatic initialization and destruction are left turned on.
Remove automatic init / destruct in 2.0.
- is depended on by
-
CDRIVER-1330 Remove automatic init/cleanup
- Backlog
- is related to
-
CDRIVER-1233 Crash after Kerberos plugin cleanup runs twice
- Closed
-
CDRIVER-783 Add support for SASL plugins
- Closed
- related to
-
CDRIVER-1160 configure flag for MONGOC_NO_AUTOMATIC_GLOBALS
- Closed
-
CDRIVER-1165 _mongoc_init_dtor() should restore its memory vtable before cleanup
- Closed
-
CDRIVER-1175 Static compilation fails
- Closed