Skip to content

Commit

Permalink
[backend] put repounchanged in scheduler state
Browse files Browse the repository at this point in the history
So that a warm start does not flood the system with repository events.
  • Loading branch information
mlschroe committed Jul 20, 2015
1 parent da55089 commit 1097ba2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/backend/bs_sched
Expand Up @@ -7502,6 +7502,7 @@ sub event_exit {
$schedstate->{'lookat_oobhigh'} = $ectx->{'lookat_high'};
$schedstate->{'prpfinished'} = \%prpfinished;
$schedstate->{'globalnotready'} = \%prpnotready;
$schedstate->{'repounchanged'} = \%repounchanged;
$schedstate->{'fetchprojpacks'} = $ectx->{'fetchprojpacks'} if %{$ectx->{'fetchprojpacks'} || {}};
$schedstate->{'delayedfetchprojpacks'} = $ectx->{'delayedfetchprojpacks'};
$schedstate->{'watchremote_start'} = \%watchremote_start;
Expand Down Expand Up @@ -7892,6 +7893,12 @@ if (!$testprojid && -s "$rundir/bs_sched.$myarch.state") {
$prpnotready{$prp} = $oldprpnotready->{$prp} if %{$oldprpnotready->{$prp} || {}};
}

# update repounchanged hash
my $oldrepounchanged = $schedstate->{'repounchanged'} || {};
for my $prp (@prps) {
$repounchanged{$prp} = $oldrepounchanged->{$prp} if %{$oldrepounchanged->{$prp} || {}};
}

# update delayedfetchprojpacks hash
my $olddelayedfetchprojpacks = $schedstate->{'delayedfetchprojpacks'} || {};
for my $projid (keys %$projpacks) {
Expand Down

0 comments on commit 1097ba2

Please sign in to comment.