summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-07 08:57:16 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-07 08:57:16 +0100
commit3f258be41684ff149e24adc3a3f80a47820614fa (patch)
tree360a7352d617823775db54b1602cf1012ee0693c /runtime/queue.c
parent4f88aa20b4e5ace523a2fb4b5f221d9e70e26d13 (diff)
downloadrsyslog-3f258be41684ff149e24adc3a3f80a47820614fa.tar.gz
rsyslog-3f258be41684ff149e24adc3a3f80a47820614fa.tar.bz2
rsyslog-3f258be41684ff149e24adc3a3f80a47820614fa.zip
do not adjust batch size for disk queues
Diffstat (limited to 'runtime/queue.c')
-rw-r--r--runtime/queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index 7ad2b849..30516876 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -2123,7 +2123,7 @@ qqueueStart(qqueue_t *pThis) /* this is the ConstructionFinalizer */
if(pThis->iLightDlyMrk == -1 || pThis->iLightDlyMrk > pThis->iMaxQueueSize)
pThis->iLightDlyMrk = pThis->iMaxQueueSize
- (pThis->iMaxQueueSize / 100) * 30; /* default 70% */
- if(pThis->iDeqBatchSize > pThis->iMaxQueueSize)
+ if(pThis->iMaxQueueSize > 0 && pThis->iDeqBatchSize > pThis->iMaxQueueSize)
pThis->iDeqBatchSize = pThis->iMaxQueueSize;
/* finalize some initializations that could not yet be done because it is