Does this open source project support leveldb files in LDB format?
tbfungeek opened this issue · comments
Hi all:
I want to use this open source project to parse the minecraft map database which is store in leveldb.but i find the db folder of map file only has db file which is endup with .ldb not contain *.sst .as i kown .ldb is the new format leveldb is store.could you tell me how can i solve this problem ? thanks a lot
I had the same issue previously. .ldb is not supported by Dain's project. My recommendation: use https://github.com/fusesource/leveldbjni This project allowed me to parse through my DB
Thank you for your reply thanks a lot! @UngratefulFool
@UngratefulFool I found that the https://github.com/fusesource/leveldbjni is not support ldb type ,the reason is that the google leveldb is not support ldb type. we can reference the source file filename.cc in leveldb/db subfolder : in function ParseFileName
// Owned filenames have the form:
// dbname/CURRENT
// dbname/LOCK
// dbname/LOG
// dbname/LOG.old
// dbname/MANIFEST-[0-9]+
// dbname/[0-9]+.(log|sst)
but in https://github.com/Mojang/leveldb-mcpe project which is overwite by mincraft has support ldb type
we can reference the same filepath in leveldb-mcpe project:
// Owned filenames have the form:
// dbname/CURRENT
// dbname/LOCK
// dbname/LOG
// dbname/LOG.old
// dbname/MANIFEST-[0-9]+
// dbname/[0-9]+.(log|sst|ldb)