mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
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
This commit is contained in:
@ -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')
|
if($::slaveInfo->{'status'} eq 'FileOpen')
|
||||||
{
|
{
|
||||||
close ($::slaveInfo->{'TransactionFile'});
|
close ($::slaveInfo->{'TransactionFile'});
|
||||||
|
$::slaveInfo->{"status"} = 'FileClosed';
|
||||||
|
|
||||||
}
|
}
|
||||||
elsif($::slaveInfo->{'status'} eq 'DBOpen')
|
elsif($::slaveInfo->{'status'} eq 'DBOpen')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user