mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Don't purge log entries if a shutdown was requested
This commit is contained in:
parent
4ba9bc1c2d
commit
651bc9e40e
1 changed files with 2 additions and 1 deletions
|
|
@ -576,7 +576,8 @@ accesslog_purge( void *ctx, void *arg )
|
|||
for (i=0; i<pd.used; i++) {
|
||||
op->o_req_dn = pd.dn[i];
|
||||
op->o_req_ndn = pd.ndn[i];
|
||||
op->o_bd->be_delete( op, &rs );
|
||||
if ( !slapd_shutdown )
|
||||
op->o_bd->be_delete( op, &rs );
|
||||
ch_free( pd.ndn[i].bv_val );
|
||||
ch_free( pd.dn[i].bv_val );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue