mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
Allow shutdown to interrupt the indexer
This commit is contained in:
parent
5de908e7e1
commit
5bf5288be5
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue