Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
None
Description
We are presently not ever calling these functions, which the documentation for mongoc explicit states as a requirement.
The CXX driver requires the user to initialize a `mongocxx::instance` at the start of a program, which calls `libmongoc::init()`; the destructor for a `mongocxx::instance` then calls `libmongoc::cleanup()`.
We should implement this similarly, and maybe reference-count the mongoc instance in `MongoClient.deinit` to determine whether any other clients exist that point to it, and if not call cleanup.
Attachments
Issue Links
- is depended on by
-
SWIFT-118 Assign test setup classes to NSPrincipalClass
-
- Closed
-
-
SWIFT-119 Initialize libmongoc before running tests from macOS command line
-
- Closed
-
- is related to
-
SWIFT-105 Allow a user logger to be set in MongoMobile
-
- Closed
-
- related to
-
SWIFT-120 Document MongoSwift.initialize() and cleanup() functions
-
- Closed
-
-
SWIFT-93 Support building the driver on Linux
-
- Closed
-
- links to