Skip to content

Commit

Permalink
[backend] bs_repserver add schedulerstate just once and not for every…
Browse files Browse the repository at this point in the history
… package
  • Loading branch information
mlschroe committed Oct 12, 2016
1 parent 3b18a8a commit 9c2a361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/bs_repserver
Expand Up @@ -2261,6 +2261,7 @@ sub getresult {
$sl->{'details'} = $schedulerdetails if defined $schedulerdetails;
$sl->{'dirty'} = 'true' if -e "$reporoot/$prpa/:schedulerstate.dirty";
$sl->{'dirty'} = 'true' if $schedulerstate eq 'scheduling'; # flag already removed, but new state not yet written
$state .= "$schedulerstate\0\0";
fixpackstatus($prpa, $ps, \%buildingjobs, %code ? \%code : undef) unless $cgi->{'lastbuild'};
for my $packid (sort(keys %{$ps->{'packstatus'} || {}})) {
my $code = $ps->{'packstatus'}->{$packid};
Expand All @@ -2275,7 +2276,6 @@ sub getresult {
}
next if %code && !$code{$code};
$state .= "$packid\0$code\0";
$state .= "$sl->{'state'}\0$sl->{'code'}\0";
if ($cgi->{'summary'}) {
$sum{$code} = ($sum{$code} || 0) + 1;
} else {
Expand Down

0 comments on commit 9c2a361

Please sign in to comment.