-
Type:
New Feature
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: libmongoc
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
mongoc_client_get_server_status
mongoc_collection_stats
mongoc_collection_validate
These helper functions don't work with sessions. Instead of adding session-capable functions like mongoc_client_get_server_status_with_opts, mongoc_collection_stats_with_opts, etc., just deprecate the functions. Applications can use mongoc_client_read_command_with_opts easily.
Also deprecate mongoc_database_create_collection, which doesn't properly handle write concern.
The C Driver provides helper functions for MongoDB operations that are implemented differently according to which server is selected, and for MongoDB operations that require complex logic which should be implemented once in C to benefit HLL wrappers. These functions don't fit either criterion, just deprecate them.