mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Merge remote branch 'origin/mdb.master'
This commit is contained in:
commit
122fa3a895
1 changed files with 8 additions and 1 deletions
|
|
@ -200,6 +200,13 @@
|
|||
#ifndef MDB_DSYNC
|
||||
# define MDB_DSYNC O_DSYNC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/** Function for flushing the data of a file. Define this to fsync
|
||||
* if fdatasync() is not supported.
|
||||
*/
|
||||
#ifndef MDB_FDATASYNC
|
||||
# define MDB_FDATASYNC fdatasync
|
||||
#endif
|
||||
|
||||
/** A page number in the database.
|
||||
|
|
@ -1283,7 +1290,7 @@ mdb_env_sync(MDB_env *env, int force)
|
|||
{
|
||||
int rc = 0;
|
||||
if (force || !F_ISSET(env->me_flags, MDB_NOSYNC)) {
|
||||
if (fdatasync(env->me_fd))
|
||||
if (MDB_FDATASYNC(env->me_fd))
|
||||
rc = ErrCode();
|
||||
}
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue