In mdb_checkpoint, force sync

Otherwise this is a no-op in various NOSYNC/MAPASYNC situations
This commit is contained in:
Howard Chu 2013-09-02 12:54:48 -07:00
parent b03ce7af6c
commit 3b272b43dc

View File

@ -114,7 +114,7 @@ mdb_checkpoint( void *ctx, void *arg )
struct re_s *rtask = arg; struct re_s *rtask = arg;
struct mdb_info *mdb = 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_thread_mutex_lock( &slapd_rq.rq_mutex );
ldap_pvt_runqueue_stoptask( &slapd_rq, rtask ); ldap_pvt_runqueue_stoptask( &slapd_rq, rtask );
ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex ); ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex );