summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-20 16:01:42 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-20 16:01:42 +0100
commitd7a0899203a911d7441f2d3a2efd908a7e50f8d9 (patch)
treee3d7325fb0908577d924fc13e1764315a4ced7d8 /runtime/queue.c
parentc0e58be06bf7c354c72f54c08be469d180ec6d99 (diff)
downloadrsyslog-d7a0899203a911d7441f2d3a2efd908a7e50f8d9.tar.gz
rsyslog-d7a0899203a911d7441f2d3a2efd908a7e50f8d9.tar.bz2
rsyslog-d7a0899203a911d7441f2d3a2efd908a7e50f8d9.zip
regression fix: action queues with default settings did not start workers
This was introduced yesterday and has not been part of any released version.
Diffstat (limited to 'runtime/queue.c')
-rw-r--r--runtime/queue.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index 63f2db74..5770eae9 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -2130,11 +2130,9 @@ qqueueStart(qqueue_t *pThis) /* this is the ConstructionFinalizer */
|| pThis->iLowWtrMrk > pThis->iMaxQueueSize
|| pThis->iLowWtrMrk > pThis->iHighWtrMrk )
pThis->iLowWtrMrk = (pThis->iMaxQueueSize / 100) * 70;
- if(pThis->iNumWorkerThreads > 1) {
- if( pThis->iMinMsgsPerWrkr < 1
- || pThis->iMinMsgsPerWrkr > pThis->iMaxQueueSize )
- pThis->iMinMsgsPerWrkr = pThis->iMaxQueueSize / pThis->iNumWorkerThreads;
- }
+ if( pThis->iMinMsgsPerWrkr < 1
+ || pThis->iMinMsgsPerWrkr > pThis->iMaxQueueSize )
+ pThis->iMinMsgsPerWrkr = pThis->iMaxQueueSize / pThis->iNumWorkerThreads;
if(pThis->iFullDlyMrk == -1 || pThis->iFullDlyMrk > pThis->iMaxQueueSize)
pThis->iFullDlyMrk = (pThis->iMaxQueueSize / 100) * 97;
if(pThis->iLightDlyMrk == -1 || pThis->iLightDlyMrk > pThis->iMaxQueueSize)