kriszyp / lmdb-js

Simple, efficient, ultra-fast, scalable data store wrapper for LMDB
Other
520 stars 44 forks source link

DB files not readible by other implementations #273

Closed tbaumann closed 9 months ago

tbaumann commented 9 months ago

I described this in https://github.com/kriszyp/lmdb-js/issues/267 but it's actually not specific to that.

All files I manage to create with lmdb-js are not readable by for example mdb_stat but also lightnighstream which uses the golang implementation.

]$ mdb_stat  domaintokens_lmdb_shadow_test_db/
mdb_env_open failed, error -30793 MDB_INVALID: File is not an LMDB file

The same is true with noSubdir: true and mdb_stat -n

tbaumann commented 9 months ago

domaintokens_lmdb_shadow_test_db.db.tar.gz

Some binaries my program created. (Standard content encoding. No lightningstream stuff)

tbaumann commented 9 months ago

I get it to compile with the latest change. Thanks.

But now my tests SEGFAULT. :cry:

tbaumann commented 9 months ago

Tests pass. :+1:

tbaumann commented 9 months ago

Seems to work. Lightningstream and other apps can open the files. Thanks a lot, I could not have done it myself.

Can you publish this version as a beta? Building from git repo takes some really janky hacks in my CI/CD. :pray:

kriszyp commented 9 months ago

Probably will publish a beta later today.

tbaumann commented 9 months ago

Got it, thanks.