From 3c9ac6e0c464b03ac826fb908ac55c8b5c5d690b 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. Content-Type: text/plain; charset="utf-8" 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. --- misc/migration_tools/rebuild_zebra.pl | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index b72ab2c..d8469f0 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -441,7 +441,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.7.6