From 467b192d98923bb01f8ec15141d4d0e6c0c48bda Mon Sep 17 00:00:00 2001
From: Phil Ross <pross@rubiconsoftware.com>
Date: Fri, 16 Oct 2009 09:50:24 +0100
Subject: [PATCH] Use a delay when releasing to cause the job to be written to the binlog.

Sleep for the delay before restarting beanstalkd so the job can be picked up with reserve.
---
 sh-tests/binlog-read.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sh-tests/binlog-read.sh b/sh-tests/binlog-read.sh
index 89f7458..efd6414 100755
--- a/sh-tests/binlog-read.sh
+++ b/sh-tests/binlog-read.sh
@@ -55,7 +55,7 @@ put 0 0 120 4
 tes1
 watch test
 reserve
-release 1 1 0
+release 1 1 1
 reserve
 delete 2
 quit
@@ -78,7 +78,7 @@ test "$res" -eq 0 || exit $res
 
 killbeanstalkd
 
-sleep .1
+sleep 1
 ./beanstalkd -p $port -b "$logdir" >/dev/null 2>/dev/null &
 bpid=$!
 
-- 
1.5.6.5

