From a4dad2009992d436ba23c2d0a4a43b483aac40fc Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 19 May 2009 11:03:09 +0200 Subject: queue size calculation now based on logical/physical dequeue ... needed to split the old single counter into two. I wouldn't bet that I made some mistakes while doing so, but at least some ad-hoc tests plus the testbench do no longer indicate errors. --- tests/da-mainmsg-q.sh | 4 ++-- tests/diskqueue.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/da-mainmsg-q.sh b/tests/da-mainmsg-q.sh index 2ea6278e..91addf68 100755 --- a/tests/da-mainmsg-q.sh +++ b/tests/da-mainmsg-q.sh @@ -24,7 +24,7 @@ if [ "$?" -ne "0" ]; then cp rsyslog.out.log rsyslog.out.log.save fi ls -l test-spool -sleep 1 # we need this so that rsyslogd can receive all outstanding messages +sleep 2 # we need this so that rsyslogd can receive all outstanding messages # # part 2: send bunch of messages. This should trigger DA mode # @@ -35,7 +35,7 @@ if [ "$?" -ne "0" ]; then cp rsyslog.out.log rsyslog.out.log.save fi ls -l test-spool -sleep 5 # we need this so that rsyslogd can receive all outstanding messages +sleep 8 # we need this so that rsyslogd can receive all outstanding messages # # send another handful # diff --git a/tests/diskqueue.sh b/tests/diskqueue.sh index 5ff9ced0..efa6728b 100755 --- a/tests/diskqueue.sh +++ b/tests/diskqueue.sh @@ -7,6 +7,7 @@ echo testing queue disk-only mode rm -rf test-spool mkdir test-spool +# enable this, if you need debug output: export RSYSLOG_DEBUG="debug" rm -f work rsyslog.out.log rsyslog.out.log.save # work files ../tools/rsyslogd -c4 -u2 -n -irsyslog.pid -M../runtime/.libs:../.libs -f$srcdir/testsuites/diskqueue.conf & sleep 1 -- cgit