Attached is a 1 line bug fix for dbmirror that was submitted.
authorJoe Conway
Fri, 2 Jul 2004 00:58:09 +0000 (00:58 +0000)
committerJoe Conway
Fri, 2 Jul 2004 00:58:09 +0000 (00:58 +0000)
It fixes a bug where some transactions could be dropped when writing
mirrored SQL statements to files.
-- Steven Singer

contrib/dbmirror/DBMirror.pl

index 98592c66201be6c1f28e5904df0729b34938a5f4..63b009b68fc2f3148dc6942fb280c90be2cc8170 100755 (executable)
@@ -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')
       {