From d74d0ab0c3e876ceb0e264014c1c7639b61f8d04 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 13 Feb 2013 14:45:15 +0100 Subject: [PATCH] [PASSED QA] 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. --- 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 5e0d5f1..c29ef76 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 ); -- 1.7.9.5