mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

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>