summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorAndre Lorbach <alorbach@adiscon.com>2011-08-18 15:45:00 +0200
committerAndre Lorbach <alorbach@adiscon.com>2011-08-18 15:45:00 +0200
commitc1108d7af1ca04b2c485bd87a8cbbf044ffde6fb (patch)
treebc313aaed75f9ac30098309ffd07fb5d72869910 /runtime/queue.c
parent1eff0e2ebee9b6a53a6b77cdc106bbf3b5d62b55 (diff)
parent154747929f87010b444af2d552f980daafe451e6 (diff)
downloadrsyslog-c1108d7af1ca04b2c485bd87a8cbbf044ffde6fb.tar.gz
rsyslog-c1108d7af1ca04b2c485bd87a8cbbf044ffde6fb.tar.bz2
rsyslog-c1108d7af1ca04b2c485bd87a8cbbf044ffde6fb.zip
Merge branch 'v5-stable' into beta
Conflicts: ChangeLog configure.ac
Diffstat (limited to 'runtime/queue.c')
-rw-r--r--runtime/queue.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index 00eb76c7..9012abeb 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -88,6 +88,15 @@ static rsRetVal qqueueMultiEnqObjDirect(qqueue_t *pThis, multi_submit_t *pMultiS
#define QUEUE_CHECKPOINT 1
#define QUEUE_NO_CHECKPOINT 0
+/* debug aid */
+static void displayBatchState(batch_t *pBatch)
+{
+ int i;
+ for(i = 0 ; i < pBatch->nElem ; ++i) {
+ dbgprintf("XXXXX: displayBatchState %p[%d]: %d\n", pBatch, i, pBatch->pElem[i].state);
+ }
+}
+
/***********************************************************************
* we need a private data structure, the "to-delete" list. As C does
* not provide any partly private data structures, we implement this