mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 01:30:42 +01:00
Merge branch 'v7-stable' into v7-devel
This commit is contained in:
commit
8aeeda6d80
@ -244,6 +244,11 @@ Version 7.5.0 [devel] 2013-06-11
|
|||||||
Thanks to Axel Rau for the patch.
|
Thanks to Axel Rau for the patch.
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
Version 7.4.7 [v7.4-stable] 2013-11-??
|
Version 7.4.7 [v7.4-stable] 2013-11-??
|
||||||
|
- bugfix: limiting queue disk space did not work properly
|
||||||
|
* queue.maxdiskspace actually initializes queue.maxfilesize
|
||||||
|
* total size of queue files was not checked against
|
||||||
|
queue.maxdiskspace for disk assisted queues.
|
||||||
|
Thanks to Karol Jurak for the patch.
|
||||||
- bugfix: linux kernel-like ratelimiter did not work properly with all
|
- bugfix: linux kernel-like ratelimiter did not work properly with all
|
||||||
inputs (for example, it did not work with imdup). The reason was that
|
inputs (for example, it did not work with imdup). The reason was that
|
||||||
the PRI value was used, but that needed parsing of the message, which
|
the PRI value was used, but that needed parsing of the message, which
|
||||||
|
|||||||
@ -260,7 +260,7 @@ qqueueDbgPrint(qqueue_t *pThis)
|
|||||||
(pThis->pszFilePrefix == NULL) ? "[NONE]" : (char*)pThis->pszFilePrefix);
|
(pThis->pszFilePrefix == NULL) ? "[NONE]" : (char*)pThis->pszFilePrefix);
|
||||||
dbgoprint((obj_t*) pThis, "queue.size: %d\n", pThis->iMaxQueueSize);
|
dbgoprint((obj_t*) pThis, "queue.size: %d\n", pThis->iMaxQueueSize);
|
||||||
dbgoprint((obj_t*) pThis, "queue.dequeuebatchsize: %d\n", pThis->iDeqBatchSize);
|
dbgoprint((obj_t*) pThis, "queue.dequeuebatchsize: %d\n", pThis->iDeqBatchSize);
|
||||||
dbgoprint((obj_t*) pThis, "queue.maxdiskspace: %lld\n", pThis->iMaxFileSize);
|
dbgoprint((obj_t*) pThis, "queue.maxdiskspace: %lld\n", pThis->sizeOnDiskMax);
|
||||||
dbgoprint((obj_t*) pThis, "queue.highwatermark: %d\n", pThis->iHighWtrMrk);
|
dbgoprint((obj_t*) pThis, "queue.highwatermark: %d\n", pThis->iHighWtrMrk);
|
||||||
dbgoprint((obj_t*) pThis, "queue.lowwatermark: %d\n", pThis->iLowWtrMrk);
|
dbgoprint((obj_t*) pThis, "queue.lowwatermark: %d\n", pThis->iLowWtrMrk);
|
||||||
dbgoprint((obj_t*) pThis, "queue.fulldelaymark: %d\n", pThis->iFullDlyMrk);
|
dbgoprint((obj_t*) pThis, "queue.fulldelaymark: %d\n", pThis->iFullDlyMrk);
|
||||||
@ -2703,7 +2703,7 @@ doEnqSingleObj(qqueue_t *pThis, flowControl_t flowCtlType, msg_t *pMsg)
|
|||||||
* the queue to become ready or drop the new message. -- rgerhards, 2008-03-14
|
* the queue to become ready or drop the new message. -- rgerhards, 2008-03-14
|
||||||
*/
|
*/
|
||||||
while( (pThis->iMaxQueueSize > 0 && pThis->iQueueSize >= pThis->iMaxQueueSize)
|
while( (pThis->iMaxQueueSize > 0 && pThis->iQueueSize >= pThis->iMaxQueueSize)
|
||||||
|| (pThis->qType == QUEUETYPE_DISK && pThis->sizeOnDiskMax != 0
|
|| ((pThis->qType == QUEUETYPE_DISK || pThis->bIsDA) && pThis->sizeOnDiskMax != 0
|
||||||
&& pThis->tVars.disk.sizeOnDisk > pThis->sizeOnDiskMax)) {
|
&& pThis->tVars.disk.sizeOnDisk > pThis->sizeOnDiskMax)) {
|
||||||
STATSCOUNTER_INC(pThis->ctrFull, pThis->mutCtrFull);
|
STATSCOUNTER_INC(pThis->ctrFull, pThis->mutCtrFull);
|
||||||
if(pThis->toEnq == 0 || pThis->bEnqOnly) {
|
if(pThis->toEnq == 0 || pThis->bEnqOnly) {
|
||||||
@ -2951,7 +2951,7 @@ qqueueApplyCnfParam(qqueue_t *pThis, struct nvlst *lst)
|
|||||||
} else if(!strcmp(pblk.descr[i].name, "queue.dequeuebatchsize")) {
|
} else if(!strcmp(pblk.descr[i].name, "queue.dequeuebatchsize")) {
|
||||||
pThis->iDeqBatchSize = pvals[i].val.d.n;
|
pThis->iDeqBatchSize = pvals[i].val.d.n;
|
||||||
} else if(!strcmp(pblk.descr[i].name, "queue.maxdiskspace")) {
|
} else if(!strcmp(pblk.descr[i].name, "queue.maxdiskspace")) {
|
||||||
pThis->iMaxFileSize = pvals[i].val.d.n;
|
pThis->sizeOnDiskMax = pvals[i].val.d.n;
|
||||||
} else if(!strcmp(pblk.descr[i].name, "queue.highwatermark")) {
|
} else if(!strcmp(pblk.descr[i].name, "queue.highwatermark")) {
|
||||||
pThis->iHighWtrMrk = pvals[i].val.d.n;
|
pThis->iHighWtrMrk = pvals[i].val.d.n;
|
||||||
} else if(!strcmp(pblk.descr[i].name, "queue.lowwatermark")) {
|
} else if(!strcmp(pblk.descr[i].name, "queue.lowwatermark")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user