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

Simplify ordered read in __cursor_skip_prev

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • 3
    • 2023-02-23 "Stoney Baloney", 2023-03-21 Ellen Ripley

      daniel.gomezferro@mongodb.com made a good point that in __cursor_skip_prev, we can change this code

                  /*
                   * It is possible that we read an old value that is inconsistent to the higher levels of
                   * the skip list due to CPU read reordering. Add a read barrier to avoid this issue.
                   */
                  WT_ORDERED_READ(cbt->next_stack[i], ins->next[i]);
      

      to cbt->next_stack[i] = next_ins;

      It saves us a read barrier.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: