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 race in moveRegularItemWithSync #66

Closed igchor closed 1 year ago

igchor commented 1 year ago

in some cases, waiter waiting on newHandle were never woken up. This patch moves the memcpy operation before replaceIf which makes marking newHandle as moving unnecessary.


This change is Reviewable