diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-30 13:07:44 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-30 13:07:44 +0000 |
commit | 61b10104612b3d776399f853f399e64ffe175e65 (patch) | |
tree | a6653e9e25d3da57451a699a2be9780eadf42da8 /action.h | |
parent | 91b5178c124417b419854cae35204b6742605af5 (diff) | |
download | rsyslog-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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |