diff options
author | Michael Biebl <biebl@debian.org> | 2013-05-15 18:11:39 +0200 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2013-05-15 18:11:39 +0200 |
commit | 91bc2744cf85809ac50535129ba4a3c4faae081b (patch) | |
tree | 9a447d9be1ce5e082e8c964215ad01573bab3b4e /runtime/queue.c | |
parent | d5e3be17e7d29f5464bf8ed0130e92928ad099e8 (diff) | |
download | rsyslog-91bc2744cf85809ac50535129ba4a3c4faae081b.tar.gz |
Imported Upstream version 7.3.15upstream/7.3.15
Diffstat (limited to 'runtime/queue.c')
-rw-r--r-- | runtime/queue.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/queue.c b/runtime/queue.c index 600b568..85b1e45 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; } |