Permalink
Browse files

[backend] fix aggregate blocking code in scheduler (from mls)

  • Loading branch information...
1 parent 40141f2 commit 0936b2811bb155b5e266f28167ec96c873a60636 @bugfinder bugfinder committed Aug 31, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/backend/bs_sched
View
1 src/backend/bs_sched
@@ -3973,6 +3973,7 @@ sub checkaggregate {
$ps = (readxml("$reporoot/$aprp/$myarch/:packstatus", $BSXML::packstatuslist, 1) || {})->{'packstatus'} || [];
$ps = { 'packstatus' => { map {$_->{'name'} => $_->{'status'}} @$ps } } if $ps;
}
+ $ps = ($ps || {})->{'packstatus'} || {};
for my $apackid (@apackids) {
my $s = $ps->{$apackid} || '';
if ($s eq 'scheduled' || $s eq 'blocked' || $s eq 'finished') {

0 comments on commit 0936b28

Please sign in to comment.