diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-21 12:43:44 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-21 12:43:44 +0200 |
commit | d6a3b08f56cc608bc832251cd49e86e71d9574dc (patch) | |
tree | 8a8ac11597e76ca1eccf591352006c12f61e128e /action.c | |
parent | dc653ed74f2299b2023da9a30c2f5d03c23e71ab (diff) | |
download | rsyslog-d6a3b08f56cc608bc832251cd49e86e71d9574dc.tar.gz rsyslog-d6a3b08f56cc608bc832251cd49e86e71d9574dc.tar.xz rsyslog-d6a3b08f56cc608bc832251cd49e86e71d9574dc.zip |
fixed problem in action message induced failure handling
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -910,7 +910,8 @@ dbgprintf("ZZZ1: tryDoAction, nElem %d, iDoneUpto %d\n", *pnElem, pBatch->iDoneU } else if(localRet == RS_RET_DISCARDMSG) { pBatch->pElem[i].state = BATCH_STATE_DISC; } else { - dbgprintf("tryDoAction: unexpected error code %d, finalizing\n", localRet); + dbgprintf("tryDoAction: unexpected error code %d[nElem %d, Commited UpTo %d], finalizing\n", + localRet, *pnElem, iCommittedUpTo); iRet = localRet; FINALIZE; } @@ -921,7 +922,6 @@ dbgprintf("ZZZ1: tryDoAction, nElem %d, iDoneUpto %d\n", *pnElem, pBatch->iDoneU finalize_it: if(pBatch->iDoneUpTo != iCommittedUpTo) { - *pnElem += iCommittedUpTo - pBatch->iDoneUpTo; pBatch->iDoneUpTo = iCommittedUpTo; } RETiRet; |