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

Fold pinned existence check into __wt_txn_pinned_timestamp

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.9.0, 4.4.5
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 5
    • Storage - Ra 2021-03-08

      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.

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

              Created:
              Updated:
              Resolved: