Investigate if r/w ops to evict_disabled should be under locks

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • StorEng - Defined Pipeline
    • 5

      evict_disabled is used to let other threads know eviction is disabled on a btree. Since it's a shared variable, we should be careful when writing to it or reading it. There are places where it's updated under the evict_walk_lock lock, sometimes we use __wt_atomic_subi32 to decrement its value and in other places, we just read it without any precaution.

      It could be a false alarm but I think it deserves attention, especially after the concern raised about prefetch here.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: