mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 04:22:13 +08:00
Annotations: Prevent orphaned annotation tags cleanup when no annotations were cleaned (#33957)
Fixes #33948 Co-authored-by: Anatoly Fayngelerin <afayngelerin@dropbox.com>
This commit is contained in:
@ -47,8 +47,9 @@ func (acs *AnnotationCleanupService) CleanAnnotations(ctx context.Context, cfg *
|
||||
if err != nil {
|
||||
return totalCleanedAnnotations, 0, err
|
||||
}
|
||||
|
||||
affected, err = acs.cleanOrphanedAnnotationTags(ctx)
|
||||
if totalCleanedAnnotations > 0 {
|
||||
affected, err = acs.cleanOrphanedAnnotationTags(ctx)
|
||||
}
|
||||
return totalCleanedAnnotations, affected, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user