From: Howard Chu Date: Tue, 15 Aug 2006 00:02:57 +0000 (+0000) Subject: Don't purge log entries if a shutdown was requested X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=651bc9e40e297ce2f3a94d7b091fb653a46d5e44;p=openldap Don't purge log entries if a shutdown was requested --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 15c512a022..a11b205c84 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -576,7 +576,8 @@ accesslog_purge( void *ctx, void *arg ) for (i=0; io_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 ); }