[CDRIVER-592] Deprecate mongoc_init_ctor/dtor Created: 25/Mar/15  Updated: 03/Sep/18  Resolved: 16/Jun/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.0

Type: Bug Priority: Major - P3
Reporter: Mira Carey Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CDRIVER-1330 Remove automatic init/cleanup Backlog
Related
related to CDRIVER-1160 configure flag for MONGOC_NO_AUTOMATI... Closed
related to CDRIVER-1165 _mongoc_init_dtor() should restore it... Closed
related to CDRIVER-1175 Static compilation fails Closed
is related to CDRIVER-1233 Crash after Kerberos plugin cleanup r... Closed
is related to CDRIVER-783 Add support for SASL plugins Closed

 Description   

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.



 Comments   
Comment by Githook User [ 06/Jul/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-592 fix automatic-init warning text
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/d284ca9972f710cf66a3ed8fb89ad414f6f33ccc

Comment by Githook User [ 16/Jun/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-592 deprecate automatic init/cleanup
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/f9c646fbc01fe0eb73cc714e6583a6d458dbd5d0

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