diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | action.c | 6 | ||||
-rw-r--r-- | action.h | 1 | ||||
-rw-r--r-- | queue.c | 1 |
4 files changed, 9 insertions, 1 deletions
@@ -17,6 +17,8 @@ Version 3.10.4 (rgerhards), 2008-01-?? - added $ActionQueueWorkerThreadMinimumMessages config directive - added $ActionQueueMaxFileSize config directive - added $ActionQueueSaveonShutdown config directive +- bugfix: added forgotten docs to package +- improved debugging support --------------------------------------------------------------------------- Version 3.10.3 (rgerhards), 2008-01-28 - fixed a bug with standard template definitions (not a big deal) - thanks @@ -84,6 +84,8 @@ rsRetVal actionDestruct(action_t *pThis) { ASSERT(pThis != NULL); + queueDestruct(&pThis->pQueue); + if(pThis->pMod != NULL) pThis->pMod->freeInstance(pThis->pModData); @@ -308,14 +310,16 @@ actionCallDoAction(action_t *pAction, msg_t *pMsg) RUNLOG_STR("going into do_action call loop"); RUNLOG_VAR("%d", iRetries); /* first check if we are suspended and, if so, retry */ + ASSERT(pAction != NULL); if(actionIsSuspended(pAction)) { dbgprintf("action %p is suspended\n", pAction); iRet = actionTryResume(pAction); } if(iRet == RS_RET_OK) { +RUNLOG_STR("calling configured action\n"); /* call configured action */ - iRet = pAction->pMod->mod.om.doAction(pAction->ppMsgs, pAction->f_pMsg->msgFlags, pAction->pModData); + iRet = pAction->pMod->mod.om.doAction(pAction->ppMsgs, pMsg->msgFlags, pAction->pModData); } RUNLOG_VAR("%d", iRet); @@ -88,6 +88,7 @@ rsRetVal actionWriteToAction(action_t *pAction); inline int actionIsSuspended(action_t *pThis) { int i; + ASSERT(pThis != NULL); i = pThis->bSuspended == 1; dbgprintf("in IsSuspend(), returns %d\n", i); return i; @@ -217,6 +217,7 @@ queueStartDA(queue_t *pThis) */ pThis->pqDA->pqParent = pThis; + CHKiRet(queueSetpUsr(pThis->pqDA, pThis->pUsr)); CHKiRet(queueSetMaxFileSize(pThis->pqDA, pThis->iMaxFileSize)); CHKiRet(queueSetFilePrefix(pThis->pqDA, pThis->pszFilePrefix, pThis->lenFilePrefix)); CHKiRet(queueSetiPersistUpdCnt(pThis->pqDA, pThis->iPersistUpdCnt)); |