Skip to content

Fix filing GetOrCreate could delete unrelated cache entries - #17

Merged
bep merged 1 commit into
mainfrom
feat/claudereview
Jan 14, 2026
Merged

Fix filing GetOrCreate could delete unrelated cache entries#17
bep merged 1 commit into
mainfrom
feat/claudereview

Conversation

@bep

@bep bep commented Jan 14, 2026

Copy link
Copy Markdown
Owner

When create() failed, Delete(key) removed whatever was currently at that key — even if another goroutine had since replaced it via Set() or GetOrCreate(). Now only deletes if the entry is the same instance.

 When create() failed, Delete(key) removed whatever was currently at that key — even if another goroutine had since replaced it via Set() or GetOrCreate(). Now only deletes if the entry is the same instance.
@bep
bep force-pushed the feat/claudereview branch from 70aa070 to f9d7b79 Compare January 14, 2026 00:32
@bep
bep merged commit 6baa8c3 into main Jan 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant