httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <>
Subject Re: [PATCH] Rotate logs based on file size...
Date Wed, 12 Jun 2002 18:50:24 GMT

In order to be able to calculate the size of the log file you will need
to either use atomics or another kind of locking mechanism when you
update the filesize, as you will have multiple threads updating this
value concurrently.

so -1 for me, as I don't think it will work on multi-cpu machines
(changes to a +1 if I'm on crack and this does work properly on
multi-cpu machines)

Brad Nicholes wrote:
 >     We have a requirement on NetWare to rotate the logs based on file
 > size rather than on a rotation time.  This patch modifies rotatelogs to
 > accept either a rotation time or a file size parameter.  If a file size
 > is specified, it will automatically rotate the log when the actual file
 > size reaches the specified file size.  I would like to check this patch
 > in if I can get enough votes.
 > thanks,
 > Brad

View raw message