frostfs-node/pkg/innerring/processors/audit/process.go
Alex Vanin 3d3d058b05 [#265] innerring: Select containers to audit
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-12-25 16:49:27 +03:00

23 lines
605 B
Go

package audit
import (
"go.uber.org/zap"
)
func (ap *Processor) processStartAudit(epoch uint64) {
// todo: flush left audit results from audit result cache
containers, err := ap.selectContainersToAudit(epoch)
if err != nil {
ap.log.Error("container selection failure",
zap.String("error", err.Error()))
return
}
ap.log.Info("select containers for audit", zap.Int("amount", len(containers)))
// todo: for each container get list of storage groups
// todo: for each container create audit result template in audit result cache
// todo: for each container push audit tasks into queue
}