summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorAndre Lorbach <alorbach@adiscon.com>2012-07-31 08:19:37 -0700
committerAndre Lorbach <alorbach@adiscon.com>2012-07-31 08:19:37 -0700
commit617a7aaa1dc4569e6c151a14889bffe808f984c5 (patch)
treeaddb4da0a8256a796d480ec440de0567d27e5b97 /runtime/queue.c
parentf043778bdc23c7b2baf18c1fc35ba47fa4d8386c (diff)
downloadrsyslog-617a7aaa1dc4569e6c151a14889bffe808f984c5.tar.gz
rsyslog-617a7aaa1dc4569e6c151a14889bffe808f984c5.tar.xz
rsyslog-617a7aaa1dc4569e6c151a14889bffe808f984c5.zip
bugfix: DA queue fixed handling of bad queue files.
Diffstat (limited to 'runtime/queue.c')
-rw-r--r--runtime/queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index 280ebd94..6a1cf446 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -707,7 +707,7 @@ static rsRetVal qConstructDisk(qqueue_t *pThis)
CHKiRet(strm.SetbSync(pThis->tVars.disk.pWrite, pThis->bSyncQueueFiles));
CHKiRet(strm.SetDir(pThis->tVars.disk.pWrite, glbl.GetWorkDir(), strlen((char*)glbl.GetWorkDir())));
CHKiRet(strm.SetiMaxFiles(pThis->tVars.disk.pWrite, 10000000));
- CHKiRet(strm.SettOperationsMode(pThis->tVars.disk.pWrite, STREAMMODE_WRITE));
+ CHKiRet(strm.SettOperationsMode(pThis->tVars.disk.pWrite, STREAMMODE_WRITE_TRUNC));
CHKiRet(strm.SetsType(pThis->tVars.disk.pWrite, STREAMTYPE_FILE_CIRCULAR));
CHKiRet(strm.ConstructFinalize(pThis->tVars.disk.pWrite));