]> git.sur5r.net Git - openldap/commitdiff
Don't purge log entries if a shutdown was requested
authorHoward Chu <hyc@openldap.org>
Tue, 15 Aug 2006 00:02:57 +0000 (00:02 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 15 Aug 2006 00:02:57 +0000 (00:02 +0000)
servers/slapd/overlays/accesslog.c

index 15c512a0224c05734f34bb850bdef4141aae8161..a11b205c8446183157753ebb3cfaf9df046b58a6 100644 (file)
@@ -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 );
                }