summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-19 09:42:46 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-19 09:42:46 +0100
commit89216d6a96ea5f6d1fa9893d56fa877a2131d390 (patch)
tree9dd547e22ac13397762ceed15dad1694258cea67 /tools
parent9cdcba0bdc8b8d2df8d06784f3c4f0066c90fd40 (diff)
downloadrsyslog-89216d6a96ea5f6d1fa9893d56fa877a2131d390.tar.gz
rsyslog-89216d6a96ea5f6d1fa9893d56fa877a2131d390.tar.xz
rsyslog-89216d6a96ea5f6d1fa9893d56fa877a2131d390.zip
fixed regression from previos (yet unrelease) $omfileFlushOnTXEnd fixtemp.4.6.1.10
The previous fix fixed an issue with on/off bying used in the exact wrong semantic. It corrected the situation, but failed to fix one spot where the wrong semantics were used. This is done with this commit. Note that this is NOT a bug seen in any released version.
Diffstat (limited to 'tools')
-rw-r--r--tools/omfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index 438f8c4a..c4e834cc 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -413,7 +413,7 @@ prepareFile(instanceData *pData, uchar *newFileName)
* async processing, which is a real performance waste if we do not do buffered
* writes! -- rgerhards, 2009-07-06
*/
- if(pData->bFlushOnTXEnd)
+ if(!pData->bFlushOnTXEnd)
CHKiRet(strm.SetiFlushInterval(pData->pStrm, pData->iFlushInterval));
if(pData->pszSizeLimitCmd != NULL)
CHKiRet(strm.SetpszSizeLimitCmd(pData->pStrm, ustrdup(pData->pszSizeLimitCmd)));