Skip to content

Commit cae51e8

Browse files
committed
Break out of loop entirely when background cache queue is full
Signed-off-by: Bryan Boreham <[email protected]>
1 parent b4f07df commit cae51e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/chunk/cache/background.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (c *backgroundCache) Store(ctx context.Context, keys []string, bufs [][]byt
103103
if sp != nil {
104104
sp.LogFields(otlog.Int("dropped", len(keys)))
105105
}
106-
break // queue is full; give up
106+
return // queue is full; give up
107107
}
108108
keys = keys[num:]
109109
bufs = bufs[num:]

0 commit comments

Comments
 (0)