From: Howard Chu Date: Thu, 21 Apr 2005 19:23:33 +0000 (+0000) Subject: Allow shutdown to interrupt the indexer X-Git-Tag: OPENLDAP_AC_BP~851 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5bf5288be5886bed0ec468ee4a38c4d82319fef6;p=openldap Allow shutdown to interrupt the indexer --- diff --git a/servers/slapd/back-bdb/config.c b/servers/slapd/back-bdb/config.c index 91dcad1074..be86835e4d 100644 --- a/servers/slapd/back-bdb/config.c +++ b/servers/slapd/back-bdb/config.c @@ -186,6 +186,9 @@ bdb_online_index( void *ctx, void *arg ) data.dlen = data.ulen = 0; while ( 1 ) { + if ( slapd_shutdown ) + break; + rc = TXN_BEGIN( bdb->bi_dbenv, NULL, &txn, bdb->bi_db_opflags ); if ( rc ) break;