Don't review obsolete time window for readonly btree

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Transactions
    • SE Transactions - 2025-10-10
    • 3

      We mark a clean page dirty if its aggregated timestamps are globally visible to reconcile and cleanup them in __evict_review_obsolete_time_window. However, we should not do that on the standby for the stable btrees opened as checkpoints.

      We should change this check from:

          /* The checkpoint cursor dhandle is read-only. Do not mark these pages as dirty. */
          if (WT_READING_CHECKPOINT(session))
              return (0);
      

      to

          /* The checkpoint cursor dhandle is read-only. Do not mark these pages as dirty. */
          if (F_ISSET(btree, WT_BTREE_READONLY))
              return (0);
      

            Assignee:
            Zunyi Liu
            Reporter:
            Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: