From 5bf5288be5886bed0ec468ee4a38c4d82319fef6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 21 Apr 2005 19:23:33 +0000 Subject: [PATCH] Allow shutdown to interrupt the indexer --- servers/slapd/back-bdb/config.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5