ITS#7682 mdb_env_copy(): Avoid Linux O_DIRECT bug.
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Sep 2013 18:07:29 +0000 (20:07 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Sep 2013 18:07:29 +0000 (20:07 +0200)
commit3335b2583490f10c3f273391b48e1e2987022f4c
treed123cea8987ca9090d255d6c98e7574c9ffc26b2
parent912e09fd04e0512e6f764176a4a0a2ab009c87d1
ITS#7682 mdb_env_copy(): Avoid Linux O_DIRECT bug.

Use fcntl() to set the flag.  Linux open(,O_DIRECT...) can create
the file even on failure, if the filesystem lacks O_DIRECT support.
libraries/liblmdb/mdb.c