Author: spadkins
Date: Thu Jan 17 08:15:27 2008
New Revision: 10583

Modified:
   p5ee/trunk/App-WorkQueue/lib/App/WorkQueue.pm

Log:
maybe fixed bug in _release_in_mem where the  variable was declared in two 
confusing contexts

Modified: p5ee/trunk/App-WorkQueue/lib/App/WorkQueue.pm
==============================================================================
--- p5ee/trunk/App-WorkQueue/lib/App/WorkQueue.pm       (original)
+++ p5ee/trunk/App-WorkQueue/lib/App/WorkQueue.pm       Thu Jan 17 08:15:27 2008
@@ -649,8 +649,8 @@
                     #$self->_release_resources($ent);
                     $context->log("WQ: _release_in_mem: release with 
$ent->{$status_attrib} not equal $STATUS_ACQUIRED : actual/group 
data_source[$entry->{actual_data_source}/$entry->{group_data_source}]\n");
                 }
-                my $released = $self->update($ent,[EMAIL PROTECTED],[EMAIL 
PROTECTED]);
-                if (!$released) {
+                my $nrows = $self->update($ent,[EMAIL PROTECTED],[EMAIL 
PROTECTED]);
+                if (!$nrows) {
                     $context->log("WorkQueue: _release_in_mem: update of db 
failed : " . join("|", %$ent) . "\n");
                 }
                 splice(@$data, $e, 1);
@@ -1952,3 +1952,4 @@
 
 
 
+

Reply via email to