summaryrefslogtreecommitdiffstats
path: root/dirty.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-14 15:51:52 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-14 15:51:52 +0100
commit2387c9281d847b68f9c6268c1ba5e557e78f906c (patch)
treea4052fc66312709b4d7c25ed56d462f2c889c602 /dirty.h
parentf6e6e5edf172a06a20305895bcf0bf8509f08261 (diff)
downloadrsyslog-2387c9281d847b68f9c6268c1ba5e557e78f906c.tar.gz
rsyslog-2387c9281d847b68f9c6268c1ba5e557e78f906c.tar.bz2
rsyslog-2387c9281d847b68f9c6268c1ba5e557e78f906c.zip
fix: ruleset queues were activated too early
This does not cause issues in v7, but here we have the problem that the total number of actions, which now is required for wti sizing, is not available at that early stage. So we needed to delay queue startup until everything is processed (just as it should have been already!). Note the previously we could have a segfault on first message when ruleset queues were used.
Diffstat (limited to 'dirty.h')
-rw-r--r--dirty.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dirty.h b/dirty.h
index e0a6e26e..3f8e30d5 100644
--- a/dirty.h
+++ b/dirty.h
@@ -36,6 +36,7 @@ rsRetVal logmsgInternal(int iErr, int pri, uchar *msg, int flags);
rsRetVal __attribute__((deprecated)) parseAndSubmitMessage(uchar *hname, uchar *hnameIP, uchar *msg, int len, int flags, flowControl_t flowCtlTypeu, prop_t *pInputName, struct syslogTime *stTime, time_t ttGenTime, ruleset_t *pRuleset);
rsRetVal diagGetMainMsgQSize(int *piSize); /* for imdiag */
rsRetVal createMainQueue(qqueue_t **ppQueue, uchar *pszQueueName, struct nvlst *lst);
+rsRetVal startMainQueue(qqueue_t *pQueue);
extern int MarkInterval;
extern qqueue_t *pMsgQueue; /* the main message queue */