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

make various libmongoc structures ref counted

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      To make binding into various languages easier, we should make some of our structures ref counted.

      Primarily, this should help manage lifetime of structures which is much more difficult in higher-level languages where we cannot control scope.

      In particular, the following are probably strong candidates for reference counting.

      mongoc_cilent_t
      mongoc_collection_t
      mongoc_cursor_t
      mongoc_database_t
      mongoc_gridfs_t
      mongoc_bulk_operation_t
      mongoc_stream_t

      Possibly these as well:

      mongoc_uri_t
      mongoc_write_concern_t
      mongoc_read_preferences_t

      Attachments

        Activity

          People

            christian.hergert@10gen.com Christian Hergert
            christian.hergert@10gen.com Christian Hergert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: