Gyuho Lee 2e95ace82b mvcc: fetch revisions with current revision, not 0, in HashByRev
It was getting revisions with "atRev==0", which makes
"available" from "keep" method always empty since
"walk" on "keyIndex" only returns true.

"available" should be populated with all revisions to be
kept if the compaction happens with the given revision.
But, "available" was being empty when "kvindex.Keep(0)"
since it's always the case that "rev.main > atRev==0".

Fix https://github.com/coreos/etcd/issues/9022.

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-18 12:17:06 -08:00
..
2017-08-21 02:16:55 -07:00
2016-05-12 20:50:33 -07:00
2017-07-31 17:59:42 -07:00
2017-07-31 17:59:42 -07:00
2017-07-31 17:59:42 -07:00
2017-03-08 20:52:59 -08:00
2017-07-25 17:00:46 -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