From e12e53cfbb8b8764dcbd4da3ff143ad9d46a8795 Mon Sep 17 00:00:00 2001
From: Rainer Gerhards
Date: Tue, 29 Jan 2008 17:36:19 +0000
Subject: added ability to re-enqueue objects into the queue when a worker
thread is cancelled
---
debug.c | 2 +-
doc/rsyslog_high_database_rate.html | 1 +
obj.c | 4 +-
queue.c | 192 ++++++++++++++++++++++++++++++++----
queue.h | 6 ++
5 files changed, 185 insertions(+), 20 deletions(-)
diff --git a/debug.c b/debug.c
index 82ed2442..06140b69 100644
--- a/debug.c
+++ b/debug.c
@@ -59,7 +59,7 @@ int Debug; /* debug flag - read-only after startup */
int debugging_on = 0; /* read-only, except on sig USR1 */
static int bLogFuncFlow = 0; /* shall the function entry and exit be logged to the debug log? */
static int bPrintFuncDBOnExit = 0; /* shall the function entry and exit be logged to the debug log? */
-static int bPrintMutexAction = 0; /* shall mutex calls be printed to the debug log? */
+static int bPrintMutexAction = 1; /* shall mutex calls be printed to the debug log? */
static int bPrintTime = 1; /* print a timestamp together with debug message */
static char *pszAltDbgFileName = NULL; /* if set, debug output is *also* sent to here */
static FILE *altdbg = NULL; /* and the handle for alternate debug output */
diff --git a/doc/rsyslog_high_database_rate.html b/doc/rsyslog_high_database_rate.html
index fe355c35..7b1f984f 100644
--- a/doc/rsyslog_high_database_rate.html
+++ b/doc/rsyslog_high_database_rate.html
@@ -74,6 +74,7 @@ following simple config file, you log anything you receive to a MySQL database
and have buffering applied automatically.