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

Create public API to report whether a server session is dirty

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.18.0, 1.18.0-alpha
    • Affects Version/s: None
    • Component/s: None

      While investigating PHPLIB-528, I remembered that PHPC and PHPLIB cannot implement any of the session spec tests because libmongoc provides no API for discerning whether a session has been marked as dirty.

      The Sessions spec doesn't talk about the relevance of this field for users, although I don't see any reason why it couldn't be exposed in a public API (at least in libmongoc for the benefit of other drivers).

      Can we consider adding mongoc_client_session_is_dirty? I'm open to more contextual names (e.g. mongoc_client_session_will_be_discarded, mongoc_client_session_has_seen_error), but that's probably something better conveyed in documentation.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: