From f9c8f39c029051be06dc51afd432fcdb4b59af20 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 13 Feb 2013 14:45:15 +0100 Subject: [PATCH] Bug 9609: Rebuilding zebra reports double number of exported records. Test plan: Clear the zebra queue (run rebuild). Update one biblio. Rebuild zebra (again) with -z. Check zebra log: note 2 exported records. Now apply patch, and repeat: You will see 1 exported record. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Works as described. Signed-off-by: Jared Camins-Esakov --- misc/migration_tools/rebuild_zebra.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index 5e0d5f1b58..c29ef76ebf 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -461,7 +461,6 @@ sub export_marc_records_from_list { if ($@) { warn "Error exporting record $record_number ($record_type) ".($noxml ? "not XML" : "XML"); } - $num_exported++; } } print "\nRecords exported: $num_exported\n" if ( $verbose_logging ); -- 2.39.5