summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-05-10 17:34:05 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-05-10 17:34:05 +0200
commitc397616d772714cf0d71870dc8f61c7a999bf939 (patch)
tree72d96dca2773b910504809924b63af54a1d38ff7 /runtime/queue.c
parentc142c2f69401dc800434efd6b901d1c4c2f27069 (diff)
parent0817fc95a810df497c52200c772fac743ca84dde (diff)
downloadrsyslog-c397616d772714cf0d71870dc8f61c7a999bf939.tar.gz
rsyslog-c397616d772714cf0d71870dc8f61c7a999bf939.tar.bz2
rsyslog-c397616d772714cf0d71870dc8f61c7a999bf939.zip
Merge branch 'master' of git+ssh://git.adiscon.com/git/rsyslog
Diffstat (limited to 'runtime/queue.c')
-rw-r--r--runtime/queue.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index 600b5688..85b1e45b 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -2760,6 +2760,12 @@ qqueueApplyCnfParam(qqueue_t *pThis, struct cnfparamvals *pvals)
"param '%s'\n", pblk.descr[i].name);
}
}
+ if(pThis->qType == QUEUETYPE_DISK && pThis->pszFilePrefix == NULL) {
+ errmsg.LogError(0, RS_RET_QUEUE_DISK_NO_FN, "error on queue '%s', disk mode selected, but "
+ "no queue file name given; queue type changed to 'linkedList'",
+ obj.GetName((obj_t*) pThis));
+ pThis->qType = QUEUETYPE_LINKEDLIST;
+ }
cnfparamvalsDestruct(pvals, &pblk);
return RS_RET_OK;
}