intel / CacheLib

Pluggable in-process caching engine to build and scale high performance services
https://www.cachelib.org
Apache License 2.0
17 stars 4 forks source link

Fix token creation and stats #79

Closed igchor closed 1 year ago

igchor commented 1 year ago

Previously token was not destroyed in case we failed to mark the item as moving/for eviction.

As a result, in the next iteration, we could have ended up with a new item marked as moving but with a token associated with the previous item.


This change is Reviewable