Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-6163

Fold pinned existence check into __wt_txn_pinned_timestamp

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.0, 4.9.0, 4.4.5
    • None
    • 5
    • Storage - Ra 2021-03-08

    Description

      There are three callers of __wt_txn_pinned_timestamp, two of them use a check for

       if (S2C(session)->txn_global.has_pinned_timestamp)

      before making the function call and the other doesn't.

      We should see if we can safely fold the check into __wt_txn_pinned_timestamp, or if not try to help callers do the right thing if there is no pinned timestamp.

      There is possibly a correctness problem with the code that isn't checking for the existence of a pinned timestamp before making the call, so I think we should prioritize this work.

      Attachments

        Activity

          People

            etienne.petrel@mongodb.com Etienne Petrel
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: