From 76dd9d56a1d82489345f33065ba91e8cc3e7466e Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Mon, 18 Dec 2017 13:20:00 -0800 Subject: [PATCH] mvcc: clean-up godoc in key_index.go Minor clean-up. Signed-off-by: Gyuho Lee --- mvcc/key_index.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mvcc/key_index.go b/mvcc/key_index.go index 8181d9d21..805922bfc 100644 --- a/mvcc/key_index.go +++ b/mvcc/key_index.go @@ -46,7 +46,7 @@ var ( // rev except the largest one. If the generation becomes empty // during compaction, it will be removed. if all the generations get // removed, the keyIndex should be removed. - +// // For example: // compact(2) on the previous example // generations: @@ -223,9 +223,8 @@ func (ki *keyIndex) keep(atRev int64, available map[revision]struct{}) { } func (ki *keyIndex) doCompact(atRev int64, available map[revision]struct{}) (genIdx int, revIndex int) { - // walk until reaching the first revision that has an revision smaller or equal to - // the atRev. - // add it to the available map + // walk until reaching the first revision smaller or equal to "atRev", + // and add the revision to the available map f := func(rev revision) bool { if rev.main <= atRev { available[rev] = struct{}{}