summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorAndre Lorbach <alorbach@adiscon.com>2011-08-18 15:41:22 +0200
committerAndre Lorbach <alorbach@adiscon.com>2011-08-18 15:41:22 +0200
commit53135efb4e793da3eb94d9e42c340484192aefcf (patch)
tree804f0b982ec849c8b0b128be8847e722ecfa5694 /runtime/queue.c
parent803462104b4eb319c05ea0f6e30c0b04548a1ed0 (diff)
parent154747929f87010b444af2d552f980daafe451e6 (diff)
downloadrsyslog-53135efb4e793da3eb94d9e42c340484192aefcf.tar.gz
rsyslog-53135efb4e793da3eb94d9e42c340484192aefcf.tar.xz
rsyslog-53135efb4e793da3eb94d9e42c340484192aefcf.zip
Merge branch 'v5-stable' into v5-devel
Conflicts: 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 c831836d..d81c552b 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -93,6 +93,15 @@ static rsRetVal qDestructDisk(qqueue_t *pThis);
#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