diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-09-10 08:14:12 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-09-10 08:14:12 +0200 |
commit | 8cb83af1118b633d88cd01fefe2571e91918a9f9 (patch) | |
tree | 393ea88e2fce7b1a7c98f7a7e4c21f4b53451914 | |
parent | 702140afad013a94450397f72fe1a5452178ee1b (diff) | |
download | rsyslog-8cb83af1118b633d88cd01fefe2571e91918a9f9.tar.gz rsyslog-8cb83af1118b633d88cd01fefe2571e91918a9f9.tar.xz rsyslog-8cb83af1118b633d88cd01fefe2571e91918a9f9.zip |
bugfix: incorrect default discard severity could cause message loss
default discard severity was incorrectly set to 4, which lead
to discard-on-queue-full to be enabled by default. That could cause
message loss where non was expected. The default has now been changed
to the correct value of 8, which disables the functionality. This
problem applied both to the main message queue and the action queues.
Thanks to Raoul Bhatia for pointing out this problem.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | action.c | 2 | ||||
-rw-r--r-- | syslogd.c | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -16,6 +16,12 @@ Version 3.18.4 (rgerhards), 2008-09-?? - bugfix: error code -2025 was used for two different errors. queue full is now -2074 and -2025 is unique again. (did cause no real problem except for troubleshooting) +- bugfix: default discard severity was incorrectly set to 4, which lead + to discard-on-queue-full to be enabled by default. That could cause + message loss where non was expected. The default has now been changed + to the correct value of 8, which disables the functionality. This + problem applied both to the main message queue and the action queues. + Thanks to Raoul Bhatia for pointing out this problem. --------------------------------------------------------------------------- Version 3.18.3 (rgerhards), 2008-08-18 - bugfix: imfile could cause a segfault upon rsyslogd HUP and termination @@ -105,7 +105,7 @@ actionResetQueueParams(void) iActionQHighWtrMark = 800; /* high water mark for disk-assisted queues */ iActionQLowWtrMark = 200; /* low water mark for disk-assisted queues */ iActionQDiscardMark = 9800; /* begin to discard messages */ - iActionQDiscardSeverity = 4; /* discard warning and above */ + iActionQDiscardSeverity = 8; /* discard warning and above */ iActionQueueNumWorkers = 1; /* number of worker threads for the mm queue above */ iActionQueMaxFileSize = 1024*1024; iActionQPersistUpdCnt = 0; /* persist queue info every n updates */ @@ -399,7 +399,7 @@ static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __a iMainMsgQHighWtrMark = 8000; iMainMsgQLowWtrMark = 2000; iMainMsgQDiscardMark = 9800; - iMainMsgQDiscardSeverity = 4; + iMainMsgQDiscardSeverity = 8; iMainMsgQueMaxFileSize = 1024 * 1024; iMainMsgQueueNumWorkers = 1; iMainMsgQPersistUpdCnt = 0; |