summaryrefslogtreecommitdiffstats
path: root/queue.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-17 16:30:49 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-17 16:30:49 +0000
commite0df42e01467dfb70498821114b581c02184c70c (patch)
treed739e422c8f71d679c42a9137bfa92a3a3cf8a5d /queue.h
parented0363210c34002e5cfbab553506573f5b8a13a5 (diff)
downloadrsyslog-e0df42e01467dfb70498821114b581c02184c70c.tar.gz
rsyslog-e0df42e01467dfb70498821114b581c02184c70c.tar.xz
rsyslog-e0df42e01467dfb70498821114b581c02184c70c.zip
fixed sync issue on shutdown process if need to persist pure memory queue
to disk
Diffstat (limited to 'queue.h')
-rw-r--r--queue.h3
1 files changed, 3 insertions, 0 deletions
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? ;))