From 242c07f0a6a32e79f831bbfdf71208cb2f3d8af4 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 8 Nov 2010 15:36:33 +0000 Subject: [PATCH] 2010-11-08 Sergio Martin * util/pandora_sync_db.pl: Fixed array pass git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3556 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 4 ++++ pandora_server/util/pandora_sync_db.pl | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index fafb47a766..c92805e4d1 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2010-11-08 Sergio Martin + + * util/pandora_sync_db.pl: Fixed array pass + 2010-11-08 Sergio Martin * util/pandora_recode_db.pl: Checked if the tables exists diff --git a/pandora_server/util/pandora_sync_db.pl b/pandora_server/util/pandora_sync_db.pl index 3cb13a2448..589b5e76a0 100755 --- a/pandora_server/util/pandora_sync_db.pl +++ b/pandora_server/util/pandora_sync_db.pl @@ -185,18 +185,18 @@ sub pandora_sync_main ($$$) { print "\n\n"; for(my $i = 0; $i <= $#{$tables_data[0]}; $i++) { - enterprise_hook('sync_clone_table', [$dbh_source, $dbh_dest, $tables_data[0]->[$i], $tables_data[1]->[$i], $tables_data[2]->[$i], @id_agent_comparation, @id_agentmodule_comparation, @id_server_export_comparation, @id_server_comparation]) unless !defined $tables_data[0]->[$i]; + enterprise_hook('sync_clone_table', [$dbh_source, $dbh_dest, $tables_data[0]->[$i], $tables_data[1]->[$i], $tables_data[2]->[$i], \@id_agent_comparation, \@id_agentmodule_comparation, \@id_server_export_comparation, \@id_server_comparation]) unless !defined $tables_data[0]->[$i]; } # Mixed cases @columns = ('id_agente_modulo', 'id_agent'); @types = ('module', 'agent'); - enterprise_hook('sync_clone_table', [$dbh_source, $dbh_dest, 'tlayout_data', \@columns, \@types, @id_agent_comparation, @id_agentmodule_comparation, @id_server_export_comparation, @id_server_comparation]); + enterprise_hook('sync_clone_table', [$dbh_source, $dbh_dest, 'tlayout_data', \@columns, \@types, \@id_agent_comparation, \@id_agentmodule_comparation, \@id_server_export_comparation, \@id_server_comparation]); if($sync_data == 1) { @columns = ('id_agentmodule', 'id_agente'); @types = ('module', 'agent'); - enterprise_hook('sync_clone_table', [$dbh_source, $dbh_dest, 'tevento', \@columns, \@types, @id_agent_comparation, @id_agentmodule_comparation, @id_server_export_comparation, @id_server_comparation]); + enterprise_hook('sync_clone_table', [$dbh_source, $dbh_dest, 'tevento', \@columns, \@types, \@id_agent_comparation, \@id_agentmodule_comparation, \@id_server_export_comparation, \@id_server_comparation]); } my $errors = $errors_agents + $errors_modules + $errors_servers + $errors_exportservers;