summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-18 14:27:04 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-18 14:27:04 +0100
commit35fa257f37f6376887c1aa0a3a77f4ed249fd22a (patch)
tree60626608dcf31f6863ed5a2ca95269c379865935
parentc051786ea6318f9a9a5e531c49512e4ae19f249b (diff)
downloadrsyslog-35fa257f37f6376887c1aa0a3a77f4ed249fd22a.tar.gz
rsyslog-35fa257f37f6376887c1aa0a3a77f4ed249fd22a.tar.bz2
rsyslog-35fa257f37f6376887c1aa0a3a77f4ed249fd22a.zip
bugfix: omfile output was only written when buffer was full
... not at end of transaction.
-rw-r--r--ChangeLog4
-rw-r--r--tools/omfile.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6316a945..f598dd58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
---------------------------------------------------------------------------
+Version 5.3.6 [BETA] (rgerhards), 2009-11-??
+- bugfix: omfile output was only written when buffer was full, not at
+ end of transaction
+---------------------------------------------------------------------------
Version 5.3.5 [BETA] (rgerhards), 2009-11-13
- some light performance enhancement by replacing time() call with much
faster (at least under linux) gettimeofday() calls.
diff --git a/tools/omfile.c b/tools/omfile.c
index f4945ba0..02bb5cf3 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -663,6 +663,8 @@ CODESTARTdoAction
CHKiRet(strm.Flush(pData->pStrm));
}
finalize_it:
+ if(iRet == RS_RET_OK)
+ iRet = RS_RET_DEFER_COMMIT;
ENDdoAction