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

Make page->read_gen private to the eviction module

    • Storage Engines
    • 5
    • StorEng - 2024-10-15

      Currently, the read_gen field of a page (WT_PAGE) is owned by the eviction module but is accessible and modifiable by modules outside of eviction. To improve encapsulation we should make read_gen private to the eviction module. This means any module outside of eviction should interact with read_gen solely through designated APIs, without direct modification.

      This change will:

      • Ensure that only the eviction module can modify read_gen directly.
      • Encourage the use of established (or created new) APIs for modifying page state.

      This task is an example of the work described in WT-13604 which is scheduled for post Q3.

            Assignee:
            siddhartha.mahajan@mongodb.com Sid Mahajan
            Reporter:
            siddhartha.mahajan@mongodb.com Sid Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: