From cd4fd672ddb8a813a4e88ced3f35fafab318cf22 Mon Sep 17 00:00:00 2001 From: Joe Conway Date: Fri, 2 Jul 2004 00:58:09 +0000 Subject: [PATCH] Attached is a 1 line bug fix for dbmirror that was submitted. It fixes a bug where some transactions could be dropped when writing mirrored SQL statements to files. -- Steven Singer --- contrib/dbmirror/DBMirror.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/dbmirror/DBMirror.pl b/contrib/dbmirror/DBMirror.pl index 98592c6620..63b009b68f 100755 --- a/contrib/dbmirror/DBMirror.pl +++ b/contrib/dbmirror/DBMirror.pl @@ -33,7 +33,7 @@ # # ############################################################################## -# $PostgreSQL: pgsql/contrib/dbmirror/DBMirror.pl,v 1.9 2004/04/22 03:48:38 momjian Exp $ +# $PostgreSQL: pgsql/contrib/dbmirror/DBMirror.pl,v 1.10 2004/07/02 00:58:09 joe Exp $ # ############################################################################## @@ -249,6 +249,8 @@ sub Main() { if($::slaveInfo->{'status'} eq 'FileOpen') { close ($::slaveInfo->{'TransactionFile'}); + $::slaveInfo->{"status"} = 'FileClosed'; + } elsif($::slaveInfo->{'status'} eq 'DBOpen') { -- 2.40.0