From 94a87dcf43be4af6f6a0a7c4b872f542997da9db Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Thu, 18 Oct 2012 18:50:54 -0700 Subject: [PATCH] Take the hint and shutdown fast. Fast mode does not wait for clients to disconnect, which is what we want. --- t/BucardoTesting.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/BucardoTesting.pm b/t/BucardoTesting.pm index fbcbed1ac..fcb6026ab 100644 --- a/t/BucardoTesting.pm +++ b/t/BucardoTesting.pm @@ -1279,8 +1279,8 @@ sub shutdown_cluster { my $pidfile = "$dirname/postmaster.pid"; return if ! -e $pidfile; - system($pg_ctl, '-D', $dirname, '-s', 'stop') == 0 - or die "$pg_ctl -D $dirname -s stop failed: $?\n"; + my @cmd = ($pg_ctl, '-D', $dirname, '-s', '-m', 'fast', 'stop'); + system(@cmd) == 0 or die "@cmd failed: $?\n"; return; } ## end of shutdown_cluster -- 2.39.5