summaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-30 13:07:44 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-30 13:07:44 +0000
commit61b10104612b3d776399f853f399e64ffe175e65 (patch)
treea6653e9e25d3da57451a699a2be9780eadf42da8 /action.h
parent91b5178c124417b419854cae35204b6742605af5 (diff)
downloadrsyslog-61b10104612b3d776399f853f399e64ffe175e65.tar.gz
rsyslog-61b10104612b3d776399f853f399e64ffe175e65.tar.xz
rsyslog-61b10104612b3d776399f853f399e64ffe175e65.zip
- changed the ommysql output plugin so that the (lengthy) connection
initialization now takes place in message processing. This works much better with the new queued action mode (fast startup) - fixed a newly introduced bug that caused output module's doAction entry point to be called on more than one thread under some circumstances
Diffstat (limited to 'action.h')
-rw-r--r--action.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/action.h b/action.h
index 5bcdc461..09a3616b 100644
--- a/action.h
+++ b/action.h
@@ -55,14 +55,13 @@ struct action_s {
int iNumTpls; /* number of array entries for template element below */
struct template **ppTpl;/* array of template to use - strings must be passed to doAction
* in this order. */
-
- uchar **ppMsgs; /* array of message pointers for doAction */
struct msg* f_pMsg; /* pointer to the message (this will replace the other vars with msg
* content later). This is preserved after the message has been
* processed - it is also used to detect duplicates.
*/
queue_t *pQueue; /* action queue */
SYNC_OBJ_TOOL; /* required for mutex support */
+ pthread_mutex_t mutActExec; /* mutex to guard actual execution of doAction for single-threaded modules */
};
typedef struct action_s action_t;