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
REL8_0_STABLE
Joe Conway 22 years ago
parent 25ee160acd
commit cd4fd672dd
  1. 4
      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')
{

Loading…
Cancel
Save