diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-12-16 15:52:15 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-12-16 15:52:15 +0100 |
commit | c12fd1e65b0403ca60bf51cfc8b5ba487457f731 (patch) | |
tree | f962d3bc2cb6471d8873afa169b9881de25a8329 | |
parent | b9ba5013ad39dbf60a0a3bc06c38870a803451fd (diff) | |
download | rsyslog-c12fd1e65b0403ca60bf51cfc8b5ba487457f731.tar.gz rsyslog-c12fd1e65b0403ca60bf51cfc8b5ba487457f731.tar.xz rsyslog-c12fd1e65b0403ca60bf51cfc8b5ba487457f731.zip |
used a bit more stack (irrelevant) to gain a bit more performance...
... for large batches
-rw-r--r-- | action.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1360,7 +1360,7 @@ doSubmitToActionQNotAllMarkBatch(action_t *pAction, batch_t *pBatch) int i; int bProcessMarkMsgs = 0; int bModifiedFilter; - sbool FilterSave[128]; + sbool FilterSave[1024]; sbool *pFilterSave; DEFiRet; @@ -1405,6 +1405,7 @@ doSubmitToActionQNotAllMarkBatch(action_t *pAction, batch_t *pBatch) if(bModifiedFilter) { /* in this case, we need to restore previous state */ for(i = 0 ; i < batchNumMsgs(pBatch) ; ++i) { + /* note: clang static code analyzer reports a false positive below */ pBatch->pElem[i].bFilterOK = pFilterSave[i]; } } |