-
Notifications
You must be signed in to change notification settings - Fork 599
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
Deleted entries should not be removed by expire eviction #219
Conversation
Codecov Report
@@ Coverage Diff @@
## master #219 +/- ##
==========================================
+ Coverage 90.61% 90.64% +0.02%
==========================================
Files 15 15
Lines 714 716 +2
==========================================
+ Hits 647 649 +2
Misses 58 58
Partials 9 9
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm
68a6e8e
to
da3aadf
Compare
go.mod
Outdated
@@ -1,3 +1,5 @@ | |||
module github.com/allegro/bigcache/v2 | |||
module bigcache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you shouldn't change this file 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh sorry, I accidentally pushed local changes to my master
EDIT: reverted @cristaloleg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't really sure what to do about this, but I love how straightforward the fix was. Thanks!
Fixes #126. |
Hi, this is a small fix for #126,
I think the problem is that
shard.delete()
marks entries in queue as deleted ( by zero-ing all the 64 header bits for hash ), butremoveOldestEntry
is not checking for this case.