Xiang Li f935290bbc 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.
2016-10-12 13:08:26 -07:00
..
2016-10-07 14:21:19 -07:00
2016-05-12 20:50:33 -07:00
2016-05-12 20:50:33 -07:00
2016-05-20 22:31:22 -07:00
2016-05-12 20:50:33 -07:00
2016-05-20 22:31:22 -07:00
2016-08-16 12:13:33 -07:00
2016-06-21 16:20:55 -07:00
2016-05-20 22:31:22 -07:00
2016-05-20 22:31:22 -07:00
2016-10-12 13:08:26 -07:00
2016-06-19 23:00:39 -07:00
2016-05-12 20:50:33 -07:00
2016-05-12 20:50:33 -07:00
2016-05-20 22:31:22 -07:00
2016-05-12 20:50:33 -07:00