diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-23 15:17:55 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-23 15:17:55 +0200 |
commit | b1f2e53921b7ab19c363a63de47a0e7a35866052 (patch) | |
tree | 6b87e6a2a868482e16b64a6244e37512ebe4d4ab /runtime/stream.h | |
parent | b50d13a6a97c0b6fa14807775ae0edf52ef015fb (diff) | |
download | rsyslog-b1f2e53921b7ab19c363a63de47a0e7a35866052.tar.gz rsyslog-b1f2e53921b7ab19c363a63de47a0e7a35866052.tar.xz rsyslog-b1f2e53921b7ab19c363a63de47a0e7a35866052.zip |
prevented unneccessary apc calls
Diffstat (limited to 'runtime/stream.h')
-rw-r--r-- | runtime/stream.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/stream.h b/runtime/stream.h index e3ad32b1..ac003c7b 100644 --- a/runtime/stream.h +++ b/runtime/stream.h @@ -104,8 +104,8 @@ typedef struct strm_s { int64 iCurrOffs;/* current offset */ int64 *pUsrWCntr; /* NULL or a user-provided counter that receives the nbr of bytes written since the last CntrSet() */ /* dynamic properties, valid only during file open, not to be persistet */ - int bDisabled; /* should file no longer be written to? (currently set only if omfile file size limit fails) */ - int bSync; /* sync this file after every write? */ + bool bDisabled; /* should file no longer be written to? (currently set only if omfile file size limit fails) */ + bool bSync; /* sync this file after every write? */ size_t sIOBufSize;/* size of IO buffer */ uchar *pszDir; /* Directory */ int lenDir; @@ -123,6 +123,7 @@ typedef struct strm_s { int iFlushInterval; /* flush in which interval - 0, no flushing */ apc_id_t apcID; /* id of current Apc request (used for cancelling) */ pthread_mutex_t mut;/* mutex for flush in async mode */ + int apcRequested; /* is an apc Requested? */ /* support for omfile size-limiting commands, special counters, NOT persisted! */ off_t iSizeLimit; /* file size limit, 0 = no limit */ uchar *pszSizeLimitCmd; /* command to carry out when size limit is reached */ |