pmem / CacheLib

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

Fix issue with "Destorying an unresolved handle" #50

Closed vinser52 closed 2 years ago

vinser52 commented 2 years ago

The issue happened when ReadHandleImpl ctor needs to destroy waitContext because addWaitContextForMovingItem() returns false. So before destroying waitContext we are calling discard method to notify ~ItemWaitContext() that Item is ready.


This change is Reviewable