ITS#9150 fix nosync FALSE config

This commit is contained in:
Howard Chu 2020-01-11 04:24:54 +00:00
parent e2e17dd2f1
commit 9a8d7f305b

View File

@ -717,7 +717,7 @@ mdb_cf_gen( ConfigArgs *c )
if ( c->value_int )
mdb->mi_dbenv_flags |= MDB_NOSYNC;
else
mdb->mi_dbenv_flags ^= MDB_NOSYNC;
mdb->mi_dbenv_flags &= ~MDB_NOSYNC;
if ( mdb->mi_flags & MDB_IS_OPEN ) {
mdb_env_set_flags( mdb->mi_dbenv, MDB_NOSYNC,
c->value_int );