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:
parent
25ee160acd
commit
cd4fd672dd
@ -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…
x
Reference in New Issue
Block a user