[Koha-patches] [PATCH 08/11] [MT2783] removing AutoCommit=0, the last item is not commited

Henri-Damien LAURENT henridamien.laurent at biblibre.com
Fri Mar 26 11:25:38 CET 2010


From: Paul Poulain <paul.poulain at biblibre.com>

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 at biblibre.com>
---
 tools/batchMod.pl |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/tools/batchMod.pl b/tools/batchMod.pl
index 03f2bf5..9dc4b59 100755
--- a/tools/batchMod.pl
+++ b/tools/batchMod.pl
@@ -122,7 +122,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
@@ -580,7 +579,6 @@ sub progress_callback {
     return sub {
         my $progress = shift;
         $job->progress($progress);
-        $dbh->commit();
     }
 }
 
-- 
1.6.3.3




More information about the Koha-patches mailing list