Skip to content
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

Some bugs. #17

Open
fslove opened this issue Mar 13, 2018 · 2 comments
Open

Some bugs. #17

fslove opened this issue Mar 13, 2018 · 2 comments

Comments

@fslove
Copy link

fslove commented Mar 13, 2018

1;
env:get_path() return is nil
2;
env:set_mapsize(102400)
env:open(db_path, lmdb.MDB_FIXEDMAP + lmdb.MDB_NOTLS, 420)
If grow again.program crash
Maybe we need mdb_set_relctx function?

@hyc
Copy link

hyc commented Mar 13, 2018

The relctx and associated functions were never implemented in LMDB 0.9. Using FIXEDMAP is basically unsupported at this point. Using FIXEDMAP and growing the map is very likely going to cause a crash if the map grows onto space that was being used for something else (like program code, a shared library, etc.).

@shmul
Copy link
Owner

shmul commented May 26, 2018

Apologies for the belated response. My understanding that the relfunc and relctx use cases make sense when used by native code. I don't see Lua code doing pointer arithmetic, or am I missing something? What is the use-case you gave in mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants