rosedblabs / rosedb

Lightweight, fast and reliable key/value storage engine based on Bitcask.
https://rosedblabs.github.io
Apache License 2.0
4.58k stars 632 forks source link

Fix potential deadlock in merge.go #279

Closed LEAVING-7 closed 1 year ago

LEAVING-7 commented 1 year ago

https://github.com/rosedblabs/rosedb/blob/d3926133c6b78b082d1d0fe3253c5304db22bd64/merge.go#L88-L92

It seems that the lock isn't released when the OpenNewActiveSegment function returns an error

roseduan commented 1 year ago

thanks