]> git.sur5r.net Git - openldap/commit
ITS#8209 MDB_CP_COMPACT: Handle empty or broken DB
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 25 Jun 2016 05:57:04 +0000 (07:57 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 25 Jun 2016 05:57:04 +0000 (07:57 +0200)
commit5ea12b0be85ffe3be49692af90e24411c5b90655
treef7a33ecd77a91a5e0a2779ac28a2810318eba8a3
parenteb7bbed967cd2a54d90d997e3470d02262baadb2
ITS#8209 MDB_CP_COMPACT: Handle empty or broken DB

Preserve DB flags (use metapage#1) when main DB is empty.
Fail if metapage root != actual root in output file.
libraries/liblmdb/lmdb.h
libraries/liblmdb/mdb.c
libraries/liblmdb/mdb_copy.1