[CDRIVER-1160] configure flag for MONGOC_NO_AUTOMATIC_GLOBALS Created: 15/Mar/16 Updated: 27/May/16 Resolved: 21/Mar/16 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.4.0 |
| Fix Version/s: | 1.3.5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Hannes Magnusson | Assignee: | Hannes Magnusson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
mongoc uses nondeterministic constructors and destructors to automatically init and cleanup mongoc. This is contrast to our documented requirement of needing explicit mongoc_init () and mongoc_cleanup (). A flag was added for this, which defaults to false – but we have no way of configuring this behavior to turn it off, other then explicit via cflags. We should add --enable-automatic-globals=[default yes]. Or maybe even default to false since this has been undocumented behavior all along? |
| Comments |
| Comment by Githook User [ 21/Mar/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Githook User [ 21/Mar/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by A. Jesse Jiryu Davis [ 17/Mar/16 ] |
|
Let's update the Debian package to compile the driver with auto-initialization turned off. |