From 3b272b43dcdb0fb5fd00d1c8cdf9ab84bbd072cd Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 2 Sep 2013 12:54:48 -0700 Subject: [PATCH] In mdb_checkpoint, force sync Otherwise this is a no-op in various NOSYNC/MAPASYNC situations --- servers/slapd/back-mdb/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5