]> git.sur5r.net Git - openldap/commitdiff
Allow shutdown to interrupt the indexer
authorHoward Chu <hyc@openldap.org>
Thu, 21 Apr 2005 19:23:33 +0000 (19:23 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 21 Apr 2005 19:23:33 +0000 (19:23 +0000)
servers/slapd/back-bdb/config.c

index 91dcad1074d0b5ed2f1069126db96e841d0d0151..be86835e4dd57420082f29c077f02ee3ddd9ed1b 100644 (file)
@@ -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;