mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Allow shutdown to interrupt the indexer
This commit is contained in:
parent
5de908e7e1
commit
5bf5288be5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user