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

Review the full barrier in __wt_sleep

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • StorEng - Refinement Pipeline

      Following a discussion on slack regarding the questionable barrier in __wt_yield, I noticed a similar full barrier in __wt_sleep. The comment says that "it is reasonable for someone to expect" a barrier when sleeping even if not guaranteed. I think we should instead make it explicit in all callers that need it rather than hiding it in the sleep, for the same reasons we are want to do that for yield. We can start by mechanically just adding a barrier to every call site, then remove the ones that are obviously unnecessary.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: