23.02.2021 00:30, Vladimir Sementsov-Ogievskiy wrote:
Hi all!

Thinking of how to prevent dereferencing to zero (and discard) of host cluster 
during flush of compressed cache (which I'm working on now), I have a 
question.. What prevents it for normal writes?


I have no idea about why didn't it fail for years.. May be, I'm missing 
something?

I have idea of fixing: increase the refcount of host cluster before write to 
data_file (it's important to increase refacount in same s->lock critical 
section where we get host_offset) and dereference it after write.. It should help. 
Any thoughts?

--
Best regards,
Vladimir

Reply via email to