mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#7209 Default MDB_DSYNC = O_SYNC if no O_DSYNC
This commit is contained in:
parent
f6b7277e9a
commit
2a839d5dfa
1 changed files with 4 additions and 1 deletions
|
|
@ -403,10 +403,13 @@ static int mdb_mutex_failed(MDB_env *env, mdb_mutexref_t mutex, int rc);
|
||||||
*
|
*
|
||||||
* @note If O_DSYNC is undefined but exists in /usr/include,
|
* @note If O_DSYNC is undefined but exists in /usr/include,
|
||||||
* preferably set some compiler flag to get the definition.
|
* preferably set some compiler flag to get the definition.
|
||||||
* Otherwise compile with the less efficient -DMDB_DSYNC=O_SYNC.
|
|
||||||
*/
|
*/
|
||||||
#ifndef MDB_DSYNC
|
#ifndef MDB_DSYNC
|
||||||
|
# ifdef O_DSYNC
|
||||||
# define MDB_DSYNC O_DSYNC
|
# define MDB_DSYNC O_DSYNC
|
||||||
|
# else
|
||||||
|
# define MDB_DSYNC O_SYNC
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue