summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-01-12 13:34:01 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-01-12 13:34:01 +0100
commit58870fc483c441fba4a87b8411642ea5bc8a7e74 (patch)
tree10726bfa4634429d24f0d3f41a2e5441b8a13ffb /action.c
parent671470f1a1880865bc1175414b0e5000713556d1 (diff)
parentd7277484811249b7acacb45a223928980e1a36b4 (diff)
downloadrsyslog-58870fc483c441fba4a87b8411642ea5bc8a7e74.tar.gz
rsyslog-58870fc483c441fba4a87b8411642ea5bc8a7e74.tar.xz
rsyslog-58870fc483c441fba4a87b8411642ea5bc8a7e74.zip
Merge branch 'beta'
Diffstat (limited to 'action.c')
-rw-r--r--action.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/action.c b/action.c
index 925ba824..b3600e4f 100644
--- a/action.c
+++ b/action.c
@@ -575,8 +575,19 @@ static rsRetVal actionPrepare(action_t *pThis)
* action state accordingly
*/
if(pThis->eState == ACT_STATE_RDY) {
- CHKiRet(pThis->pMod->mod.om.beginTransaction(pThis->pModData));
- actionSetState(pThis, ACT_STATE_ITX);
+ iRet = pThis->pMod->mod.om.beginTransaction(pThis->pModData);
+ switch(iRet) {
+ case RS_RET_OK:
+ actionSetState(pThis, ACT_STATE_ITX);
+ break;
+ case RS_RET_SUSPENDED:
+ actionRetry(pThis);
+ break;
+ case RS_RET_DISABLE_ACTION:
+ actionDisable(pThis);
+ break;
+ default:FINALIZE;
+ }
}
finalize_it:
@@ -773,7 +784,6 @@ finishBatch(action_t *pThis, batch_t *pBatch)
CHKiRet(actionPrepare(pThis));
if(pThis->eState == ACT_STATE_ITX) {
iRet = pThis->pMod->mod.om.endTransaction(pThis->pModData);
-dbgprintf("XXX: finishBatch, result of endTranscation %d\n", iRet);
switch(iRet) {
case RS_RET_OK:
actionCommitted(pThis);