-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newer LMDB binary format are not supported #72
Comments
Thanks for reporting!. It looks like LS is still on 1.9.0 of github.com/PowerDNS/lmdb-go. We need to update that to the latest 1.9.2. |
Giving it some more thought, I would actually be surprised that an LMDB patch release (from 0.9.28 to 0.9.31) would introduce an incompatible change to the database format. None of the changelog entries appear to suggest any such change:
I am not sure what you mean by a v1 and v2 format, this sounds like an lmdb-js thing, not an LMDB thing. |
https://github.com/kriszyp/lmdb-js/tree/dd08273cc5fa238eb86186f4b64506ee56470a51/dependencies - apparently v1 refers to the 'common' 0.9 lmdb branch, and 'not v1' refers to a copy or fork of https://github.com/LMDB/lmdb/tree/mdb.master3 |
It seems to basically come down to two different versions of the lmdb lib. PS: Ah, thanks Habbie. Looks like you got more context while I was writing |
When testing lightningstream with my own project written in JS (See kriszyp/lmdb-js#267) I noticed that the files generated are not readable by lightningstream.
Apparently the LMDB libs were updated and new binary formats introduced. And lmdb-go is still using the old one. (kriszyp/lmdb-js#273)
Thankfully lmdb-js can fall-back to v1, but I wonder if it would be good to go with the new format here.
I guess this is more of a lmdb-go issue. Perhaps I should raise it there?
PS: In the first issue I posted I posted some code. Do you see any serious issues with it? It seems to work, but I don't have the feeling that lightningstream is yet much used outside the pdns project...
The text was updated successfully, but these errors were encountered: