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

Should use __wt_txn_visible_all_id instead of __wt_txn_visible_all

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • StorEng - Refinement Pipeline

      In __wt_txn_release_snapshot:

      WT_ASSERT_OPTIONAL(session, WT_DIAGNOSTIC_TXN_VISIBILITY,
            txn_shared->pinned_id == WT_TXN_NONE || session->txn->isolation == WT_ISO_READ_UNCOMMITTED ||
              !__wt_txn_visible_all(session, txn_shared->pinned_id, WT_TS_NONE),
            "A transactions pinned id cannot become globally visible before its snapshot is released");
      

      The usage of __wt_txn_visible_all can be simplified by using __wt_txn_visible_all_id

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: