Blame SOURCES/rsyslog-8.24.0-rhbz1401870-watermark.patch

b65758
From f1cff52cc3bca3ed050f5e8e2c25698bebcf3258 Mon Sep 17 00:00:00 2001
b65758
From: Tomas Sykora <tosykora@redhat.com>
b65758
Date: Fri, 23 Dec 2016 06:56:41 -0500
b65758
Subject: [PATCH 3/3] When highwatermark is reached, messages should be
b65758
 imediately written to a queue file. Instead of that, messages weren't written
b65758
 until rsyslog was stopped. This was caused by overwritting watermark values
b65758
 by -1.
b65758
b65758
Resolves: RHBZ#1401870
b65758
---
b65758
 action.c | 4 ++--
b65758
 1 file changed, 2 insertions(+), 2 deletions(-)
b65758
b65758
diff --git a/action.c b/action.c
b65758
index 45828cc..3f8c82c 100644
b65758
--- a/action.c
b65758
+++ b/action.c
b65758
@@ -276,8 +276,8 @@ actionResetQueueParams(void)
b65758
 	cs.ActionQueType = QUEUETYPE_DIRECT;		/* type of the main message queue above */
b65758
 	cs.iActionQueueSize = 1000;			/* size of the main message queue above */
b65758
 	cs.iActionQueueDeqBatchSize = 16;		/* default batch size */
b65758
-	cs.iActionQHighWtrMark = -1;			/* high water mark for disk-assisted queues */
b65758
-	cs.iActionQLowWtrMark = -1;			/* low water mark for disk-assisted queues */
b65758
+	cs.iActionQHighWtrMark = 800;			/* high water mark for disk-assisted queues */
b65758
+	cs.iActionQLowWtrMark = 200;			/* low water mark for disk-assisted queues */
b65758
 	cs.iActionQDiscardMark = 980;			/* begin to discard messages */
b65758
 	cs.iActionQDiscardSeverity = 8;			/* discard warning and above */
b65758
 	cs.iActionQueueNumWorkers = 1;			/* number of worker threads for the mm queue above */
b65758
-- 
b65758
2.9.3
b65758