diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-14 13:54:22 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-14 13:54:22 +0000 |
commit | a53b019a4e9dea315ac750981f0f690a81b8f33f (patch) | |
tree | f413d5ad7ac86c11cecd95c9ffafadbd1867cbd5 /queue.h | |
parent | 6a7a3a2702679d111befe85cb7340e7fb04a66eb (diff) | |
download | rsyslog-a53b019a4e9dea315ac750981f0f690a81b8f33f.tar.gz rsyslog-a53b019a4e9dea315ac750981f0f690a81b8f33f.tar.bz2 rsyslog-a53b019a4e9dea315ac750981f0f690a81b8f33f.zip |
- implemented config file handlers for
$MainMsgQueueHighWaterMark
$MainMsgQueueLowWaterMark
$MainMsgQueueDiscardMark
$MainMsgQueueDiscardSeverity but did NOT yet implement the functionality
behind these directives!
Diffstat (limited to 'queue.h')
-rw-r--r-- | queue.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -83,6 +83,10 @@ typedef struct queue_s { qWrkThrd_t *pWrkThrds;/* array with control structure for the worker thread(s) associated with this queue */ int iUpdsSincePersist;/* nbr of queue updates since the last persist call */ int iPersistUpdCnt; /* persits queue info after this nbr of updates - 0 -> persist only on shutdown */ + int iHighWtrMrk; /* high water mark for disk-assisted memory queues */ + int iLowWtrMrk; /* low water mark for disk-assisted memory queues */ + int iDiscardMrk; /* if the queue is above this mark, low-severity messages are discarded */ + int iDiscardSeverity;/* messages of this severity above are discarded on too-full queue */ int bNeedDelQIF; /* does the QIF file need to be deleted when queue becomes empty? */ int toQShutdown; /* timeout for regular queue shutdown in ms */ int toActShutdown; /* timeout for long-running action shutdown in ms */ @@ -140,6 +144,10 @@ PROTOTYPEpropSetMeth(queue, iPersistUpdCnt, int); PROTOTYPEpropSetMeth(queue, toQShutdown, long); PROTOTYPEpropSetMeth(queue, toActShutdown, long); PROTOTYPEpropSetMeth(queue, toEnq, long); +PROTOTYPEpropSetMeth(queue, iHighWtrMrk, int); +PROTOTYPEpropSetMeth(queue, iLowWtrMrk, int); +PROTOTYPEpropSetMeth(queue, iDiscardMrk, int); +PROTOTYPEpropSetMeth(queue, iDiscardSeverity, int); #define queueGetID(pThis) ((unsigned long) pThis) #endif /* #ifndef QUEUE_H_INCLUDED */ |