summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-09-10 08:14:12 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-09-10 08:14:12 +0200
commit8cb83af1118b633d88cd01fefe2571e91918a9f9 (patch)
tree393ea88e2fce7b1a7c98f7a7e4c21f4b53451914 /action.c
parent702140afad013a94450397f72fe1a5452178ee1b (diff)
downloadrsyslog-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.
Diffstat (limited to 'action.c')
-rw-r--r--action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/action.c b/action.c
index 8b47f541..5de16b23 100644
--- a/action.c
+++ b/action.c
@@ -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 */