<table><tr><td style="">bruns added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16876">View Revision</a></tr></table><br /><div><div><p>You are replicating <tt style="background: #ebebeb; font-size: 13px;">mdb_copy -c</tt> here.</p>

<p>According to the man page:</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Compact  while copying. Only current data pages will be copied; freed or unused pages will be omitted from the copy. [...]  <strong>Currently it fails if the environment has suffered a page leak</strong></p></blockquote>

<p>This is e.g. the case for the dreaded assertion in mdb_page_dirty.</p>

<p>There is one method to avoid the freelist issues, by doing what <tt style="background: #ebebeb; font-size: 13px;">mdb_dump ... | mdb_load ...</tt> is doing - reading the contents from the db and writing it to a new one. This completely ignores the freelist.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16876">https://phabricator.kde.org/D16876</a></div></div><br /><div><strong>To: </strong>poboiko, Frameworks, Baloo<br /><strong>Cc: </strong>bruns, kde-frameworks-devel, ashaposhnikov, michaelh, astippich, spoorun, ngraham, abrahams<br /></div>