Commit cd4fd672 authored by Joe Conway's avatar Joe Conway

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
parent 25ee160a
...@@ -33,7 +33,7 @@ ...@@ -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() { ...@@ -249,6 +249,8 @@ sub Main() {
if($::slaveInfo->{'status'} eq 'FileOpen') if($::slaveInfo->{'status'} eq 'FileOpen')
{ {
close ($::slaveInfo->{'TransactionFile'}); close ($::slaveInfo->{'TransactionFile'});
$::slaveInfo->{"status"} = 'FileClosed';
} }
elsif($::slaveInfo->{'status'} eq 'DBOpen') elsif($::slaveInfo->{'status'} eq 'DBOpen')
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment