Adding Bill Erickson's fix for endless open cstore transactions
authorChris Sharp <csharp@georgialibraries.org>
Tue, 31 Jan 2017 16:18:21 +0000 (11:18 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 31 Jan 2017 16:18:21 +0000 (11:18 -0500)
After applying the fix to LP#1660059, the server running A/T notices
generated multiple cstore processes without closing them.  Changing
xact_commit to commit closes the cstore process after each event is
evaluated.

Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm

index 91c7994..e66993c 100644 (file)
@@ -435,7 +435,7 @@ sub update_state {
             return undef;
         }
         $log->info( "Update of event ".$e->id." suceeded" );
-        $ok = $self->editor->xact_commit if ($self->standalone);
+        $ok = $self->editor->commit if ($self->standalone);
     }
 
     if ($ok) {