From c2f0fb370f59b0c12db3d2cc2346899f8578abe0 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Fri, 26 Mar 2010 11:25:38 +0100 Subject: [PATCH] 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 Signed-off-by: Galen Charlton --- tools/batchMod.pl | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 5db1d4a210..67397e15b8 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -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(); } } -- 2.39.5