-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Implementation
-
None
-
Minor Change
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.