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:
Paul Poulain 2010-03-26 11:25:38 +01:00 committed by Galen Charlton
parent d0bca1bdd3
commit c2f0fb370f

View file

@ -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();
}
}