google / google/leveldb

Should return "locked" status when cannot lock database

Open
#985 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.