@@ -19,7 +19,7 @@ my %Stables = ();
1919
2020sub PrepareSnapshot
2121{
22- my ($conn ,$outf ,$server , $onlytables ) =@_ ;# (@_[0], @_[1], @_[2]);
22+ my ($conn ,$outf ,$server ) =@_ ;# (@_[0], @_[1], @_[2]);
2323
2424my $result =$conn -> exec (" BEGIN" );
2525if ($result -> resultStatusne PGRES_COMMAND_OK)
@@ -52,10 +52,6 @@ sub PrepareSnapshot
5252while (@row =$result -> fetchrow)
5353{
5454# printf "$row[0], $row[1], $row[2]\n";
55- if (ref ($onlytables )eq ' HASH' ) {
56- next unless (exists $onlytables -> {$row [1]});
57- $onlytables -> {$row [1]} =$row [0]unless ($onlytables -> {$row [1]});
58- }
5955push @{$Mtables {$row [0]}},$row [1],$row [2];
6056}
6157
@@ -236,7 +232,7 @@ sub GetSYNCID
236232
237233sub CleanLog
238234{
239- my ($conn ,$howold , $onlytables ) =@_ ;# (@_[0], @_[1]);
235+ my ($conn ,$howold ) =@_ ;# (@_[0], @_[1]);
240236
241237my $result =$conn -> exec (" BEGIN" );
242238if ($result -> resultStatusne PGRES_COMMAND_OK)
@@ -278,11 +274,6 @@ sub CleanLog
278274my $alist =join (' ,' ,keys %active );
279275my $sinfo =" logid <$maxid " ;
280276$sinfo .=" and logid not in ($alist )" if $alist ne ' ' ;
281- # if (ref($onlytables) eq 'HASH') {
282- # foreach my $onlytable (keys %{$onlytables}) {
283- # $sinfo
284- # }
285- # }
286277
287278$sql =" delete from _RSERV_LOG_ where" .
288279" logtime < now() - '$howold second'::interval and$sinfo " ;
@@ -311,7 +302,7 @@ sub CleanLog
311302
312303sub ApplySnapshot
313304{
314- my ($conn ,$inpf , $onlytables ) =@_ ;# (@_[0], @_[1]);
305+ my ($conn ,$inpf ) =@_ ;# (@_[0], @_[1]);
315306
316307my $result =$conn -> exec (" BEGIN" );
317308if ($result -> resultStatusne PGRES_COMMAND_OK)
@@ -345,10 +336,6 @@ sub ApplySnapshot
345336while (@row =$result -> fetchrow)
346337{
347338# printf "%s%s\n", $row[1], $row[0];
348- if (ref ($onlytables )eq ' HASH' ) {
349- next unless (exists $onlytables -> {$row [1]});
350- $onlytables -> {$row [1]} =$row [0]unless ($onlytables -> {$row [1]});
351- }
352339push @{$Stables {$row [1]}},$row [0],$row [2],$row [3];
353340}
354341