LMDB: issue with mdb_cursor_del

2017-10-16 Thread timur . kristof
Hi, I have an app that uses LMDB, and I've experienced an interesting issue: when trying to delete a certain item with mdb_cursor_del, it crashed with the following backtrace: https://pastebin.com/7p9wtkj9 It appears that it couldn't mark a page as dirty. Here is the relevant assertion from mdb_p

Re: LMDB: issue with mdb_cursor_del

2017-10-16 Thread Howard Chu
timur.kris...@gmail.com wrote: Hi, I have an app that uses LMDB, and I've experienced an interesting issue: when trying to delete a certain item with mdb_cursor_del, it crashed with the following backtrace: https://pastebin.com/7p9wtkj9 It appears that it couldn't mark a page as dirty. Here is

Re: LMDB: issue with mdb_cursor_del

2017-10-16 Thread Hallvard Breien Furuseth
On 16. okt. 2017 12:51, Howard Chu wrote: timur.kris...@gmail.com wrote: I have an app that uses LMDB, and I've experienced an interesting issue: when trying to delete a certain item with mdb_cursor_del, it crashed with the following backtrace: https://pastebin.com/7p9wtkj9 Weird backtrace. I

Re: LMDB: issue with mdb_cursor_del

2017-10-16 Thread Леонид Юрьев
Hi, Howard. This is a bug (seems minor), I fixed it in the MDBX few days ago. https://github.com/leo-yuriev/libmdbx/commit/9fd7056b4f02098914d813f38ba1ed2103c6b855#diff-185afae163fe87013315d2545a8b6055R3095 Inside freelist_save() the mt_loose_pages could be merged into the mt_free_pgs. http://www

Re: LMDB: issue with mdb_cursor_del

2017-10-16 Thread Hallvard Breien Furuseth
On 16. okt. 2017 13:43, Леонид Юрьев wrote: This is a bug (seems minor), I fixed it in the MDBX few days ago. https://github.com/leo-yuriev/libmdbx/commit/9fd7056b4f02098914d813f38ba1ed2103c6b855#diff-185afae163fe87013315d2545a8b6055R3095 That's rather different from mdb.c. mdb's page_touch()