mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Back out rserv changes that would allow limit of replicated tables ---
not ready yet.
This commit is contained in:
@ -32,7 +32,6 @@ if (defined($opt_help) || (scalar(@ARGV) < 2)) {
|
||||
|
||||
my $master = $ARGV[0] || "master";
|
||||
my $slave = $ARGV[1] || "slave";
|
||||
my $tables = $#ARGV < 2 ? undef : { map {($_, undef)} @ARGV[2..$#ARGV] };
|
||||
my $server = 0;
|
||||
|
||||
my $minfo = "dbname=$master";
|
||||
@ -57,7 +56,7 @@ SyncSync($mconn, $sconn);
|
||||
my $outf = new IO::File;
|
||||
open $outf, ">$snapshot";
|
||||
print "\n>>>>>>>>>>>>> Prepare Snapshot\n\n" if ($verbose);
|
||||
$res = PrepareSnapshot($mconn, $outf, $server, $tables);
|
||||
$res = PrepareSnapshot($mconn, $outf, $server);
|
||||
close $outf;
|
||||
die "\n>>>>>>>>>>>>> ERROR\n" if $res < 0;
|
||||
if ($res == 0)
|
||||
@ -69,7 +68,7 @@ if ($res == 0)
|
||||
my $inpf = new IO::File;
|
||||
open $inpf, "<$snapshot";
|
||||
print "\n>>>>>>>>>>>>> Apply Snapshot\n\n" if ($verbose);
|
||||
$res = ApplySnapshot($sconn, $inpf, $tables);
|
||||
$res = ApplySnapshot($sconn, $inpf);
|
||||
close $inpf;
|
||||
die "\n>>>>>>>>>>>>> ERROR\n" if $res < 0;
|
||||
|
||||
|
Reference in New Issue
Block a user