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

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

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

      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:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: