diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-13 17:16:59 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-13 17:16:59 +0000 |
commit | bbf0aecbbd3d4adf2f952011418701dce0236234 (patch) | |
tree | c84a9cfb128177c596b0d4173194bf2bf2b50e66 /queue.h | |
parent | 7791cf780f348c18de06bd06627bb986078db063 (diff) | |
download | rsyslog-bbf0aecbbd3d4adf2f952011418701dce0236234.tar.gz rsyslog-bbf0aecbbd3d4adf2f952011418701dce0236234.tar.bz2 rsyslog-bbf0aecbbd3d4adf2f952011418701dce0236234.zip |
added $MainMsgQueuePersistUpdateCount config file directive
Diffstat (limited to 'queue.h')
-rw-r--r-- | queue.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -81,7 +81,8 @@ typedef struct queue_s { int iNumWorkerThreads;/* number of worker threads to use */ qWrkThrd_t *pWrkThrds;/* array with control structure for the worker thread(s) associated with this queue */ int bImmediateShutdown;/* on shutdown, drain the queue --> 0 / do NOT drain the queue --> 1 */ - //int bNeedPersist; /* does the queue need to be persisted on disk (updated since last persist?) */ + 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 bNeedDelQIF; /* does the QIF file need to be deleted when queue becomes empty? */ rsRetVal (*pConsumer)(void *); /* user-supplied consumer function for dequeued messages */ /* type-specific handlers (set during construction) */ @@ -132,6 +133,7 @@ rsRetVal queueConstruct(queue_t **ppThis, queueType_t qType, int iWorkerThreads, int iMaxQueueSize, rsRetVal (*pConsumer)(void*)); PROTOTYPEObjClassInit(queue); PROTOTYPEpropSetMeth(queue, bImmediateShutdown, int); +PROTOTYPEpropSetMeth(queue, iPersistUpdCnt, int); #define queueGetID(pThis) ((unsigned long) pThis) #endif /* #ifndef QUEUE_H_INCLUDED */ |