removing AutoCommit=0, the last item is not commited
For an unknown reason, the last item batch updated is NOT updated. After investigating a LOT (more than 3 hours), it appears the problem comes from the AutoCommit=0 I tried to solve it, but failed. So I remove the AutoCommit=0 option. this result in a loss of perfs, but it's not a big problem I think. OTH, now everything is updated ! Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com> Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
d0bca1bdd3
commit
c2f0fb370f
1 changed files with 0 additions and 2 deletions
|
@ -123,7 +123,6 @@ if ($op eq "action") {
|
|||
# Job size is the number of items we have to process
|
||||
my $job_size = scalar(@itemnumbers);
|
||||
my $job = undef;
|
||||
$dbh->{AutoCommit} = 0;
|
||||
my $callback = sub {};
|
||||
|
||||
# If we asked for background processing
|
||||
|
@ -581,7 +580,6 @@ sub progress_callback {
|
|||
return sub {
|
||||
my $progress = shift;
|
||||
$job->progress($progress);
|
||||
$dbh->commit();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue