ITS#7598 mdb_dbi_open(named DB): Check mainDB flags.
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 21 May 2013 17:04:52 +0000 (19:04 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 21 May 2013 17:04:52 +0000 (19:04 +0200)
commit1b6d7ee7e1aae85bfce2794e60038c2b264ad93c
tree5deb0d550f2e85407b5a1d95ac05605cb640e69b
parenta2ce25482a60e516d1d9b417ed666dac6fdebb93
ITS#7598 mdb_dbi_open(named DB): Check mainDB flags.

Reject attempts to open named databases if the main
database has flag MDB_DUPSORT or MDB_INTEGERKEY.

DUPSORT would require an xcursor for the DB, INTEGERKEY
would expect the DB name to be a binary integer.
libraries/liblmdb/mdb.c