stephan-hof/pyrocksdb

repair damaged DB?

Closed this issue · 3 comments

Is it possible to repair DB which is not ok?
For example when we are having some files unreadable or missing...

How?

I have seen there is a function called RepairDB, but honestly I don't know to which degree it can repair the database. Please talk to the rocksdb people directly. I wrapped the function, see here: 8fba5ff

hi, thanks for answer.

Problem is, in python3, which is my primary platform now,
the function repair_db is missing from namespace. Not yet sure why.

Hmm are you rusing the 'master branch' having the commit I mentioned ?

I recompiled pyrocksdb with python 3.4 and for me it works

import rocksdb
options = rocksdb.Options()
# ... code to configre the options
rocksdb.repair_db('/tmp/test', options)