mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Additional shutdown check
This commit is contained in:
parent
651bc9e40e
commit
4629002ec4
@ -504,6 +504,8 @@ log_old_lookup( Operation *op, SlapReply *rs )
|
|||||||
|
|
||||||
if ( rs->sr_type != REP_SEARCH) return 0;
|
if ( rs->sr_type != REP_SEARCH) return 0;
|
||||||
|
|
||||||
|
if ( slapd_shutdown ) return 0;
|
||||||
|
|
||||||
if ( pd->used >= pd->slots ) {
|
if ( pd->used >= pd->slots ) {
|
||||||
pd->slots += PURGE_INCREMENT;
|
pd->slots += PURGE_INCREMENT;
|
||||||
pd->dn = ch_realloc( pd->dn, pd->slots * sizeof( struct berval ));
|
pd->dn = ch_realloc( pd->dn, pd->slots * sizeof( struct berval ));
|
||||||
|
Loading…
Reference in New Issue
Block a user