Bug 41681: bulkmarcimport.pl reports an incorrect number of MARC records processed

When running the script bulkmarcimport.pl, the number of MARC records reported at the end of the execution does not match the actual number of records processed from the input file.

To test:

1. Download the joined MARC file containing 5 records.
2. Run the import command:
   ./misc/migration_tools/bulkmarcimport.pl -b --file=marc_file.mrc
3. Check the final script report
   ==> 11 MARC records done in 0.566349983215332 seconds
   Expected output should show 5 records
4. Apply the patch
5. Repeat step 2, 3
   ==> The correct number is shown

Signed-off-by: Janusz Kaczmarek <januszop@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Hammat Wele 2026-01-22 00:00:39 +00:00 committed by Pedro Amorim
parent 0aa5820916
commit f5ff5269ac
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 0 additions and 1 deletions

View File

@ -332,7 +332,6 @@ $schema->txn_begin;
RECORD: while () {
my $record;
$record_number++;
# get record
eval { $record = $batch->next() };