From: Howard Chu Date: Mon, 2 Sep 2013 19:54:48 +0000 (-0700) Subject: In mdb_checkpoint, force sync X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3b272b43dcdb0fb5fd00d1c8cdf9ab84bbd072cd;p=openldap In mdb_checkpoint, force sync Otherwise this is a no-op in various NOSYNC/MAPASYNC situations --- diff --git a/servers/slapd/back-mdb/config.c b/servers/slapd/back-mdb/config.c index fa11d8c1f3..81f37cf660 100644 --- a/servers/slapd/back-mdb/config.c +++ b/servers/slapd/back-mdb/config.c @@ -114,7 +114,7 @@ mdb_checkpoint( void *ctx, void *arg ) struct re_s *rtask = arg; struct mdb_info *mdb = rtask->arg; - mdb_env_sync( mdb->mi_dbenv, 0 ); + mdb_env_sync( mdb->mi_dbenv, 1 ); ldap_pvt_thread_mutex_lock( &slapd_rq.rq_mutex ); ldap_pvt_runqueue_stoptask( &slapd_rq, rtask ); ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex );