Should return "locked" status when cannot lock database
Open
- Dominant language
- C++
- Stars
- 39.4k
- Forks
- 8.2k
- PR merge metrics
- No merged PRs in 30d
Description
Leveldb does not inform the client if the database lock failed, it reports it as generic Status::IOError.
I would like to be notified if the failure was because of failed lock, probably caused by other process holding it, so that the client can retry accessing the database later.
Like in the attached patch.
[locked.txt](https://github.com/google/leveldb/files/8032194/locked.txt)
.
Contributor guide
Assessment
This issue has not been assessed yet.