diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-07 10:56:01 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-07 10:56:01 +0100 |
commit | 48c712ce7eed7e378be7be83e5d39c5e849fb126 (patch) | |
tree | 40455a438307a6f8b6a1cad97d99d0e1ccc4bbc6 /runtime/queue.c | |
parent | 0a0f68c6fe93519e718d4d10c6cf47a0b3a9b890 (diff) | |
parent | f666ca7e2ba46d032b0990f3456b5d39dce803fa (diff) | |
download | rsyslog-48c712ce7eed7e378be7be83e5d39c5e849fb126.tar.gz rsyslog-48c712ce7eed7e378be7be83e5d39c5e849fb126.tar.bz2 rsyslog-48c712ce7eed7e378be7be83e5d39c5e849fb126.zip |
Merge branch 'master' into master-newwtipool
Diffstat (limited to 'runtime/queue.c')
-rw-r--r-- | runtime/queue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/queue.c b/runtime/queue.c index 30269152..30516876 100644 --- a/runtime/queue.c +++ b/runtime/queue.c @@ -2106,7 +2106,8 @@ qqueueStart(qqueue_t *pThis) /* this is the ConstructionFinalizer */ break; } - if(pThis->iMaxQueueSize < 100) { + if(pThis->iMaxQueueSize < 100 + && (pThis->qType == QUEUETYPE_LINKEDLIST || pThis->qType == QUEUETYPE_FIXED_ARRAY)) { errmsg.LogError(0, RS_RET_OK_WARN, "Note: queue.size=\"%d\" is very " "low and can lead to unpredictable results. See also " "http://www.rsyslog.com/lower-bound-for-queue-sizes/", @@ -2122,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 |