diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-06 12:59:32 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-06 12:59:32 +0100 |
commit | cb4848040ebbb83a8df49a18e686a324fa4879f8 (patch) | |
tree | bfce09627b0cba98d0e0c7702f19cc9e9aec1815 /action.c | |
parent | dafe381e07f410e1eccbf6268fff950825686479 (diff) | |
download | rsyslog-cb4848040ebbb83a8df49a18e686a324fa4879f8.tar.gz rsyslog-cb4848040ebbb83a8df49a18e686a324fa4879f8.tar.bz2 rsyslog-cb4848040ebbb83a8df49a18e686a324fa4879f8.zip |
yet another fix to prevent actions from doing actual work during instance creation
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -119,7 +119,6 @@ static rsRetVal doSubmitToActionQComplex(action_t *pAction, wti_t *pWti, msg_t*) static rsRetVal doSubmitToActionQNotAllMark(action_t *pAction, wti_t *pWti, msg_t*); /* object static data (once for all instances) */ -/* TODO: make this an object! DEFobjStaticHelpers -- rgerhards, 2008-03-05 */ DEFobjCurrIf(obj) DEFobjCurrIf(datetime) DEFobjCurrIf(module) @@ -1624,11 +1623,7 @@ actionNewInst(struct nvlst *lst, action_t **ppAction) errmsg.LogError(0, RS_RET_MOD_UNKNOWN, "module name '%s' is unknown", cnfModName); ABORT_FINALIZE(RS_RET_MOD_UNKNOWN); } - iRet = pMod->mod.om.newActInst(cnfModName, lst, &pModData, &pOMSR); - // TODO: check if RS_RET_SUSPENDED is still valid in v6! - if(iRet != RS_RET_OK && iRet != RS_RET_SUSPENDED) { - FINALIZE; /* iRet is already set to error state */ - } + CHKiRet(pMod->mod.om.newActInst(cnfModName, lst, &pModData, &pOMSR)); if((iRet = addAction(&pAction, pMod, pModData, pOMSR, paramvals, lst)) == RS_RET_OK) { /* check if the module is compatible with select features @@ -1643,8 +1638,6 @@ finalize_it: RETiRet; } -/* TODO: we are not yet a real object, the ClassInit here just looks like it is.. - */ rsRetVal actionClassInit(void) { DEFiRet; |