Lines 325-332
my $logger = Koha::Logger->get;
Link Here
|
325 |
my $schema = Koha::Database->schema; |
325 |
my $schema = Koha::Database->schema; |
326 |
my $lint = MARC::Lint->new; |
326 |
my $lint = MARC::Lint->new; |
327 |
|
327 |
|
328 |
$schema->txn_begin; |
328 |
while () { |
329 |
RECORD: while () { |
|
|
330 |
|
329 |
|
331 |
my $record; |
330 |
my $record; |
332 |
|
331 |
|
Lines 476-481
RECORD: while () {
Link Here
|
476 |
} |
475 |
} |
477 |
} |
476 |
} |
478 |
unless ($test_parameter) { |
477 |
unless ($test_parameter) { |
|
|
478 |
$schema->txn_begin; |
479 |
|
479 |
|
480 |
if ($authorities) { |
480 |
if ($authorities) { |
481 |
my $authtypecode = GuessAuthTypeCode( $record, $heading_fields ); |
481 |
my $authtypecode = GuessAuthTypeCode( $record, $heading_fields ); |
Lines 726-740
RECORD: while () {
Link Here
|
726 |
@search_engine_records = (); |
726 |
@search_engine_records = (); |
727 |
} |
727 |
} |
728 |
$schema->txn_commit; |
728 |
$schema->txn_commit; |
729 |
$schema->txn_begin; |
|
|
730 |
} |
729 |
} |
731 |
last if $record_number == $number || $records_exhausted; |
730 |
last if $record_number == $number || $records_exhausted; |
732 |
} |
731 |
} |
733 |
|
732 |
|
734 |
if ( !$test_parameter ) { |
|
|
735 |
$schema->txn_commit; |
736 |
} |
737 |
|
738 |
if ($fk_off) { |
733 |
if ($fk_off) { |
739 |
$dbh->do("SET FOREIGN_KEY_CHECKS = 1"); |
734 |
$dbh->do("SET FOREIGN_KEY_CHECKS = 1"); |
740 |
} |
735 |
} |
741 |
- |
|
|