Skip to content

Commit

Permalink
[#668] pkg/audit: Skip audit for containers without SG
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell authored and cthulhu-rider committed Jul 6, 2021
1 parent 3a7d7bd commit 0bcc505
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/innerring/processors/audit/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ func (ap *Processor) processStartAudit(epoch uint64) {
zap.Stringer("cid", containers[i]),
zap.Int("amount", len(storageGroups)))

// skip audit for containers
// without storage groups
if len(storageGroups) == 0 {
continue
}

auditTask := new(audit.Task).
WithReporter(&epochAuditReporter{
epoch: epoch,
Expand Down

0 comments on commit 0bcc505

Please sign in to comment.