lightningmdb icon indicating copy to clipboard operation
lightningmdb copied to clipboard

Some bugs.

Open fslove opened this issue 6 years ago • 2 comments

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?

fslove avatar Mar 13 '18 12:03 fslove

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.).

hyc avatar Mar 13 '18 17:03 hyc

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?

shmul avatar May 26 '18 07:05 shmul