Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: augment command queue with timestamps for non-interfering reads #14342

Merged
merged 1 commit into from Mar 24, 2017

Commits on Mar 24, 2017

  1. storage: augment command queue with timestamps for non-interfering reads

    Previously, the command queue considered any two commands to overlap if the
    key ranges overlapped, regardless of whether the timestamps on the two
    commands guaranteed they were non-overlapping.
    
    Consider the case of a read over key ranges "a" - "z" at timestamp t=1s.
    If a write arrives for key "c" at timestamp > t=1s, then it should be
    free to proceed regardless of the disposition of the read because the
    read cannot affect the write's timestamp.
    
    Similarly, if a write is active for key "c" at timestamp t=1s, a read
    that arrives for key range "a" - "z" should be free to proceed as long
    as its timestamp is < t=1s.
    
    Note that local keys do not allow non-interference between earlier reads
    and overlapping writes.
    
    Fixes #14298
    spencerkimball committed Mar 24, 2017
    Copy the full SHA
    81ce3af View commit details
    Browse the repository at this point in the history