Skip to content

Commit cd4fd67

Browse files
committed
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
1 parent 25ee160 commit cd4fd67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/dbmirror/DBMirror.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#
3434
#
3535
##############################################################################
36-
# $PostgreSQL: pgsql/contrib/dbmirror/DBMirror.pl,v 1.9 2004/04/22 03:48:38 momjian Exp $
36+
# $PostgreSQL: pgsql/contrib/dbmirror/DBMirror.pl,v 1.10 2004/07/02 00:58:09 joe Exp $
3737
#
3838
##############################################################################
3939

@@ -249,6 +249,8 @@ ()
249249
if($::slaveInfo->{'status'} eq 'FileOpen')
250250
{
251251
close ($::slaveInfo->{'TransactionFile'});
252+
$::slaveInfo->{"status"} = 'FileClosed';
253+
252254
}
253255
elsif($::slaveInfo->{'status'} eq 'DBOpen')
254256
{

0 commit comments

Comments
 (0)