From fbce032cf22fc49b87564b23268685244985c4b9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 12 Apr 2005 12:32:48 +0000 Subject: [PATCH] Fix checkpoint task - must call stoptask before returning --- servers/slapd/back-bdb/init.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5