Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race conditions in file cache #379

Merged
merged 7 commits into from
Dec 3, 2024
Prev Previous commit
Merge remote-tracking branch 'origin/main' into fix-race-conditions
foodprocessor committed Dec 3, 2024
commit c066eb44700bafa176f4d8cb7c433c58a783e888
3 changes: 2 additions & 1 deletion component/file_cache/lru_policy.go
Original file line number Diff line number Diff line change
@@ -236,7 +236,8 @@ func (p *lruPolicy) cacheValidate(name string) {
if node == p.head {
return
}
p.moveToHead(node)
p.extractNode(node)
p.setHead(node)
}

// For all other timer based activities we check the stuff here
You are viewing a condensed version of this merge commit. You can view the full changes here.