dain / leveldb

Port of LevelDB to Java
Apache License 2.0
1.54k stars 429 forks source link

LevelDB in read-only filesystem #71

Closed ameykshirsagar closed 8 years ago

ameykshirsagar commented 8 years ago

Is it possible to migrate LevelDB dump on a read-only filesystem to do read operations??

dain commented 8 years ago

I would guess this is possible without too much work. My guess is you will need to disable the compaction system, and add a wrapper around the DB interface that throws exceptions for all write methods.

I don't have any time to work on this code base other than committing minor fixes, so if you wanted to do this you would need to create a fork.