Skip to content

Commit

Permalink
chore(groupcache): Disable hotcache during set (#6740)
Browse files Browse the repository at this point in the history
Signed-off-by: Kaviraj <[email protected]>
  • Loading branch information
kavirajk authored Jul 21, 2022
1 parent 46d811b commit fb9a198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/chunk/cache/groupcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (c *group) Store(ctx context.Context, keys []string, values [][]byte) error

var lastErr error
for i, key := range keys {
if err := c.cache.Set(ctx, key, values[i], time.Time{}, true); err != nil {
if err := c.cache.Set(ctx, key, values[i], time.Time{}, false); err != nil {
level.Warn(c.logger).Log("msg", "failed to put to groupcache", "err", err)
lastErr = err
}
Expand Down

0 comments on commit fb9a198

Please sign in to comment.