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

Fold pinned existence check into __wt_txn_pinned_timestamp

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.0, 4.9.0, 4.4.5
    • Component/s: None
    • Labels:
    • Story Points:
      5
    • Sprint:
      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

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

              Dates

              Created:
              Updated:
              Resolved: