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

Deprecate mongoc_client_get_server_status and others

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.10.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: