Do the metadata rebuild as last step of logfile rotation so that programs

waiting don't have to wait very long until they can safely access the
logfiles.

This fixes the third part of PR pkg/8764 by Luke Mewburn.
This commit is contained in:
tron 1999-11-12 22:32:21 +00:00
parent 19e417b14b
commit cce3bb6605
2 changed files with 18 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: patch-sum,v 1.3 1999/11/12 22:07:11 tron Exp $
$NetBSD: patch-sum,v 1.4 1999/11/12 22:32:21 tron Exp $
MD5 (patch-aa) = 6befb071002fb7ced0fb9f388d039cd9
MD5 (patch-ab) = 05ef29847c539ee53d056061ab21ebcf
@ -8,3 +8,4 @@ MD5 (patch-ae) = fa1d2532d75b8e409f225063e6589f4a
MD5 (patch-af) = ec14792120b479d910a2a9f2f183564c
MD5 (patch-ag) = faf26a08bbaf4998339e37ab9f9b305c
MD5 (patch-ah) = 971f5268e79bd6a7b266baa3e5b87ca0
MD5 (patch-ai) = f4e4dbed017331c46df688543c98fec8

View file

@ -0,0 +1,16 @@
$NetBSD: patch-ai,v 1.1 1999/11/12 22:32:22 tron Exp $
--- src/main.c.orig Mon May 10 18:30:37 1999
+++ src/main.c Fri Nov 12 22:22:20 1999
@@ -351,10 +351,10 @@
{
icmpClose();
_db_rotate_log(); /* cache.log */
- storeDirWriteCleanLogs(1);
storeLogRotate(); /* store.log */
accessLogRotate(); /* access.log */
useragentRotateLog(); /* useragent.log */
+ storeDirWriteCleanLogs(1);
icmpOpen();
}