Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1160

configure flag for MONGOC_NO_AUTOMATIC_GLOBALS

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.4.0
    • 1.3.5
    • None
    • None

    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 ().
      It is also compiler specific, along with being platforms specific.
      It also creates absurd situations when the memory allocator is overloaded.

      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?

      Attachments

        Issue Links

          Activity

            People

              bjori Hannes Magnusson
              bjori Hannes Magnusson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: