Create public API to report whether a server session is dirty

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.18.0, 1.18.0-alpha
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: