diff --git a/pkg/index/job/correction/service/corrector.go b/pkg/index/job/correction/service/corrector.go index 7bdcc607ec..15b349d737 100644 --- a/pkg/index/job/correction/service/corrector.go +++ b/pkg/index/job/correction/service/corrector.go @@ -19,7 +19,6 @@ import ( "io" "os" "path/filepath" - "runtime" "sync" "sync/atomic" @@ -284,11 +283,7 @@ func (c *correct) correctWithCache(ctx context.Context) (err error) { return err } // delete all the key from the tmpSet - for k := range tmpSet { - delete(tmpSet, k) - } tmpSet = nil - runtime.GC() // ~DEBUG: log.Infof("correction finished for agent %s", addr)