From 8f3dc78dceec6b86d21ea92b42dd96c7f01d8b00 Mon Sep 17 00:00:00 2001 From: glyn Date: Mon, 1 Dec 2014 20:31:44 +0000 Subject: [PATCH] Remove testing changes --- slony_failover.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/slony_failover.pl b/slony_failover.pl index 694ef9f..e89bc78 100755 --- a/slony_failover.pl +++ b/slony_failover.pl @@ -37,7 +37,7 @@ use constant false => 0; use constant true => 1; my $g_script_version = '1.0.3'; -my $g_debug = true; +my $g_debug = false; my $g_pidfile = '/var/run/slony_failover.pid'; my $g_pid_written = false; my $g_lang = 'en'; @@ -2172,13 +2172,13 @@ sub autoFailover { printlogln($prefix,$logfile,$log_prefix,lookupMsg('autofailover_detail', $failed, $g_backups{$failed})); } $g_script = writeFailover($prefix, $dbconninfo, $clname, $dbuser, $dbpass, undef, undef, $g_subs_follow_origin, $g_use_comment_aliases, $logfile, $log_prefix); - #unless (runSlonik($g_script, $prefix, $logfile, $log_prefix)) { - # printlogln($prefix,$logfile,$log_prefix,lookupMsg('err_execute_fail', 'slonik script', $g_script)); - #} + unless (runSlonik($g_script, $prefix, $logfile, $log_prefix)) { + printlogln($prefix,$logfile,$log_prefix,lookupMsg('err_execute_fail', 'slonik script', $g_script)); + } $cluster_loaded = false; - print "SCRIPT: $g_script\n"; - exit(0); + #print "SCRIPT: $g_script\n"; + #exit(0); } else { printlogln($prefix,$logfile,$log_prefix,lookupMsg('autofailover_halt', $failed)); -- 2.39.5