Eviction may proceed/be stuck with a page that has the prefetch flag on

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Cache and Eviction
    • Storage Engines
    • 2024-05-28 - FOLLOW ON SPRINT
    • 3

      • At the end of __wt_page_can_evict, we check if the WT_REF_FLAG_PREFETCH flag is set and return false if that's the case as we don't want to evict a page that has this flag.
      • However, we can early return true before that check. This means we can try to evict a page that has the prefetch flag on it.
      • Furthermore, __wt_page_can_evict can also be called from __evict_force_check , and early return, here as well.

      If we should not evict a page that has the prefetch flag on, we should check this first before potentially returning true.

            Assignee:
            Monica Ng
            Reporter:
            Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: