]> git.sur5r.net Git - openldap/commitdiff
Fix checkpoint task - must call stoptask before returning
authorHoward Chu <hyc@openldap.org>
Tue, 12 Apr 2005 12:32:48 +0000 (12:32 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 12 Apr 2005 12:32:48 +0000 (12:32 +0000)
servers/slapd/back-bdb/init.c

index 967df296933d1250571eb72c8f442c7b97aacdd5..ed7b84dab2fcd02be1760d14d6453a030b4a25b7 100644 (file)
@@ -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;
 }