From 8d58f0231c5830edaf84c0e25271c95288cc5099 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 1 Dec 2023 06:53:21 -0500 Subject: [PATCH] Bug 35438: Remove skip_intermediate_commit parameter It no longer does anything. Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer (cherry picked from commit 067034f9e0585738df564a555194c76cb5b082be) Signed-off-by: Fridolin Somers --- C4/ImportBatch.pm | 4 ---- Koha/BackgroundJob/MARCImportCommitBatch.pm | 1 - 2 files changed, 5 deletions(-) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index 2fb22c64fd..0cfd132edf 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -520,10 +520,7 @@ sub BatchFindDuplicates { overlay_framework => $overlay_framework, progress_interval => $progress_interval, progress_callback => $progress_callback, - skip_intermediate_commit => $skip_intermediate_commit }); - - Parameter skip_intermediate_commit does what is says. =cut sub BatchCommitRecords { @@ -531,7 +528,6 @@ sub BatchCommitRecords { my $batch_id = $params->{batch_id}; my $framework = $params->{framework}; my $overlay_framework = $params->{overlay_framework}; - my $skip_intermediate_commit = $params->{skip_intermediate_commit}; my $progress_interval = $params->{progress_interval} // 0; my $progress_callback = $params->{progress_callback}; $progress_interval = 0 unless $progress_interval && $progress_interval =~ /^\d+$/; diff --git a/Koha/BackgroundJob/MARCImportCommitBatch.pm b/Koha/BackgroundJob/MARCImportCommitBatch.pm index 22398aef29..d2d45b6070 100644 --- a/Koha/BackgroundJob/MARCImportCommitBatch.pm +++ b/Koha/BackgroundJob/MARCImportCommitBatch.pm @@ -78,7 +78,6 @@ sub process { progress_interval => 50, progress_callback => sub { my $job_progress = shift; $self->progress( $job_progress )->store }, - skip_intermediate_commit => 1, }); my $count = $num_added + $num_updated; if( $count ) {