rosedblabs / rosedb

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

Bug: read lock is never released #238

Closed tobehardest closed 1 year ago

tobehardest commented 1 year ago
image

If record == nil, the if statement cannot enter, and Rlock will never Runlock, which will cause the wait reader of this lock to increase continuously, and finally when the wait reader == 98, panic

roseduan commented 1 year ago

Thanks, I have fixed in https://github.com/rosedblabs/rosedb/commit/bca110f04908a224294646abb20907db4b6e9f57