From 5285a14d27c65739a955b55b8b0c023464b66998 Mon Sep 17 00:00:00 2001 From: vyzo Date: Sun, 25 Jul 2021 11:42:13 +0300 Subject: [PATCH] write check summary at the end --- blockstore/splitstore/splitstore_check.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/blockstore/splitstore/splitstore_check.go b/blockstore/splitstore/splitstore_check.go index ce63fb726..fb567b58a 100644 --- a/blockstore/splitstore/splitstore_check.go +++ b/blockstore/splitstore/splitstore_check.go @@ -118,13 +118,10 @@ func (s *SplitStore) doCheck(curTs *types.TipSet) error { return err } - if coldCnt == 0 && missingCnt == 0 { - log.Info("check OK") - write("OK") - } else { - log.Infow("check failed", "cold", coldCnt, "missing", missingCnt) - write("FAILED") - } + log.Infow("check done", "cold", coldCnt, "missing", missingCnt) + write("--") + write("cold: %d missing: %d", coldCnt, missingCnt) + write("DONE") return nil }