memory barrier after reading page's write generation

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • WT1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None

      It occurred to me – in the page-search code, we copy the page's write generation, then search the page.

      It occurs to me we should probably have a memory barrier instruction after we copy the write generation, otherwise the compiler might re-order that read after we've actually searched the page? (Or make page->write_gen volatile?)

      --keith

              Assignee:
              Keith Bostic (Inactive)
              Reporter:
              WiredTiger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: