google / google/leveldb

[FR] readonly mode

Open
#1,082 8 comments 7 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
39.4k
Forks
8.2k
PR merge metrics
No merged PRs in 30d

Description

Please add a new parameter during database opening to make it only readable,
in case big/expensive database is used or database is on a CD/DVD.

This would also make it possible to open it within multiple processes (LOCK file wont be created).
It would also help with power interruption caused corruption. eg https://groups.google.com/g/leveldb/c/YvszWNio2-Q

Access denied could be returned with write/compaction operation.
I don't mind if leveldb dies because of content changed on disk.

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.