summaryrefslogtreecommitdiffstats
path: root/runtime/batch.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-04 18:53:13 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-04 18:53:13 +0100
commit774f7b7986c7eb84c1d3c7e75ee5f1b03a4f055b (patch)
treedf2cf6f0be53ae551af54accab4ea67121032e08 /runtime/batch.h
parent9bbd09b1d3c1a1e4562a6d5c2e7040c5a0efa39c (diff)
downloadrsyslog-774f7b7986c7eb84c1d3c7e75ee5f1b03a4f055b.tar.gz
rsyslog-774f7b7986c7eb84c1d3c7e75ee5f1b03a4f055b.tar.bz2
rsyslog-774f7b7986c7eb84c1d3c7e75ee5f1b03a4f055b.zip
refactor: remove no longer needed elements from batch_t
Diffstat (limited to 'runtime/batch.h')
-rw-r--r--runtime/batch.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/batch.h b/runtime/batch.h
index a7f62aa4..e8268b1c 100644
--- a/runtime/batch.h
+++ b/runtime/batch.h
@@ -69,7 +69,6 @@ struct batch_s {
int iDoneUpTo; /* all messages below this index have state other than RDY */
qDeqID deqID; /* ID of dequeue operation that generated this batch */
int *pbShutdownImmediate;/* end processing of this batch immediately if set to 1 */
- sbool *active; /* which messages are active for processing, NULL=all */
batch_obj_t *pElem; /* batch elements */
batch_state_t *eltState;/* state (array!) for individual objects.
NOTE: we have moved this out of batch_obj_t because we
@@ -104,8 +103,7 @@ batchSetElemState(batch_t *pBatch, int i, batch_state_t newState) {
*/
static inline int
batchIsValidElem(batch_t *pBatch, int i) {
- return( (pBatch->eltState[i] != BATCH_STATE_DISC)
- && (pBatch->active == NULL || pBatch->active[i]));
+ return(pBatch->eltState[i] != BATCH_STATE_DISC);
}