From: Howard Chu Date: Tue, 12 Apr 2005 12:32:48 +0000 (+0000) Subject: Fix checkpoint task - must call stoptask before returning X-Git-Tag: OPENLDAP_AC_BP~919 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fbce032cf22fc49b87564b23268685244985c4b9;p=openldap Fix checkpoint task - must call stoptask before returning --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index 967df29693..ed7b84dab2 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -83,6 +83,9 @@ bdb_checkpoint( void *ctx, void *arg ) TXN_CHECKPOINT( bdb->bi_dbenv, bdb->bi_txn_cp_kbyte, bdb->bi_txn_cp_min, 0 ); + 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 ); return NULL; }