summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-12-16 15:52:15 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-12-16 15:52:15 +0100
commitc12fd1e65b0403ca60bf51cfc8b5ba487457f731 (patch)
treef962d3bc2cb6471d8873afa169b9881de25a8329
parentb9ba5013ad39dbf60a0a3bc06c38870a803451fd (diff)
downloadrsyslog-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/action.c b/action.c
index 9591c393..48ed8880 100644
--- a/action.c
+++ b/action.c
@@ -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];
}
}