Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1300

Prevent mongoc_init/mongoc_cleanup from running more than once

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc0
    • Component/s: Implementation
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Story Points:
      2
    • Sprint:
      Perl/CXX 2017-05-05, Perl/CXX 2017-05-26

      Description

      mongocxx::instance prevents creation of an instance when a singleton instance exists, but it does not appear to prevent creating and destroying multiple instances serially, which would result in calling mongoc_init and mongoc_cleanup more than once.

      We should prevent this from happening and only ever allow a single instance to be created whether as a singleton or as a scoped object.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: