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

mvcc: fix rev inconsistency #6633

Merged
merged 1 commit into from
Oct 12, 2016
Merged

Commits on Oct 12, 2016

  1. mvcc: fix rev inconsistency

    Try:
    
    ./etcdctl put foo bar
    ./etcdctl del foo
    ./etcdctl compact 3
    
    restart etcd
    
    ./etcdctl get foo
    mvcc: required revision has been compacted
    
    The error is unexpected when range over the head revision.
    
    Internally, we incorrectly set current revision smaller than the
    compacted revision when we remove all keys around compacted revision.
    
    This commit fixes the issue by recovering the current revision at least
    to compacted revision.
    xiang90 committed Oct 12, 2016
    Configuration menu
    Copy the full SHA
    93225eb View commit details
    Browse the repository at this point in the history