bruns added a comment.
You are replicating `mdb_copy -c` here. According to the man page: > Compact while copying. Only current data pages will be copied; freed or unused pages will be omitted from the copy. [...] **Currently it fails if the environment has suffered a page leak** This is e.g. the case for the dreaded assertion in mdb_page_dirty. There is one method to avoid the freelist issues, by doing what `mdb_dump ... | mdb_load ...` is doing - reading the contents from the db and writing it to a new one. This completely ignores the freelist. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D16876 To: poboiko, #frameworks, #baloo Cc: bruns, kde-frameworks-devel, ashaposhnikov, michaelh, astippich, spoorun, ngraham, abrahams