]> git.sur5r.net Git - openldap/commitdiff
In mdb_checkpoint, force sync
authorHoward Chu <hyc@openldap.org>
Mon, 2 Sep 2013 19:54:48 +0000 (12:54 -0700)
committerHoward Chu <hyc@openldap.org>
Mon, 2 Sep 2013 19:54:48 +0000 (12:54 -0700)
Otherwise this is a no-op in various NOSYNC/MAPASYNC situations

servers/slapd/back-mdb/config.c

index fa11d8c1f3313be930a244edeab4694e55b2a8ed..81f37cf66086881838ceac96f7a0cd00a2bb0092 100644 (file)
@@ -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 );