From 651bc9e40e297ce2f3a94d7b091fb653a46d5e44 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 15 Aug 2006 00:02:57 +0000 Subject: [PATCH] Don't purge log entries if a shutdown was requested --- servers/slapd/overlays/accesslog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5