From e0df42e01467dfb70498821114b581c02184c70c Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 17 Jan 2008 16:30:49 +0000 Subject: fixed sync issue on shutdown process if need to persist pure memory queue to disk --- queue.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'queue.h') diff --git a/queue.h b/queue.h index e68467b9..c7e2db21 100644 --- a/queue.h +++ b/queue.h @@ -165,6 +165,9 @@ typedef struct queue_s { #define QUEUE_MODE_ENQDEQ 0 #define QUEUE_MODE_ENQONLY 1 +#define QUEUE_IDX_DA_WORKER 0 /* index for the DA worker (fixed) */ +#define QUEUE_PTR_DA_WORKER(x) (&((pThis)->pWrkThrds[0])) + /* the define below is an "eternal" timeout for the timeout settings which require a value. * It is one day, which is not really eternal, but comes close to it if we think about * rsyslog (e.g.: do you want to wait on shutdown for more than a day? ;)) -- cgit