Skip to content

Commit

Permalink
fix(cleanup): resolve potential deadlock issue
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
  • Loading branch information
alexey-igrychev committed Dec 2, 2024
1 parent 07bed9c commit a6b2530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cleaning/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ func (m *cleanupManager) getRelativeStageDescSetByStageDesc(targetStageDesc *ima
relativeStageDescSet := image.NewStageDescSet()
currentStageDescSet := targetStageDescSet
for !currentStageDescSet.IsEmpty() {
for currentStageDesc := range currentStageDescSet.Iter() {
for _, currentStageDesc := range currentStageDescSet.ToSlice() {
relativeStageDescSet.Add(currentStageDesc)
currentStageDescSet.Remove(currentStageDesc)

Expand Down

0 comments on commit a6b2530

Please sign in to comment.