]> git.sur5r.net Git - openldap/commit
libmdb: Don't open datafile twice when not needed.
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 12 Apr 2012 05:34:13 +0000 (07:34 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 12 Apr 2012 06:15:33 +0000 (08:15 +0200)
commit8e1ebbb4a83a7c8b1500d00b7e5c5f3da134f1ca
tree6bc5174345d3cebc46bb79d5d6355ee82eb7c47a
parent6d0b424dbe2dd4abe75fad7b88def5088b7ff074
libmdb: Don't open datafile twice when not needed.

If the database is opened with MDB_RDONLY or MDB_NOSYNC,
instead use the same file descriptor for me_mfd and me_fd.

Also factor out Windows/Unix error handling after open.
libraries/libmdb/mdb.c