From: Paul Poulain <paul.poul...@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.laur...@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

_______________________________________________
Koha-patches mailing list
Koha-patches@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to