Add an API to allow read timestamp to round up to oldest

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.0-rc2, WT3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2017-10-23
    • None

      Applications (including MongoDB) currently have to deal with a race, where they calculate a valid timestamp for a call to WT_SESSION::begin_transaction, but by the time WiredTiger goes to use the timestamp, another thread has updated oldest_timestamp to a more recent value.

      It would simplify application code if there were a flag to WT_SESSION::begin_transaction that caused the transaction to use the newer oldest_timestamp in this case rather than failing.

      Something like session->begin_transaction(session, "read_timestamp=100,round_to_oldest=true");

            Assignee:
            Vamsi Boyapati
            Reporter:
            Michael Cahill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: