Skip to content

Commit

Permalink
[backend] do not delete remoteproj objects from other partition of sa…
Browse files Browse the repository at this point in the history
…me instance

The other possible solution would be to avoid skipping projects in getprojpack
when they are on other partition, but not explicit asked for.
  • Loading branch information
adrianschroeter committed Jul 13, 2015
1 parent 307a9d4 commit 85344ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/bs_sched
Original file line number Diff line number Diff line change
Expand Up @@ -3829,13 +3829,14 @@ sub calc_prps {

sub updateremoteprojs {
for my $projid (keys %remoteprojs) {
my $or = $remoteprojs{$projid};
next if $or && $or->{'partition'}; # XXX how do we update them?, do not drop at least ...

my $r = $watchremoteprojs{$projid};
if (!$r) {
delete $remoteprojs{$projid};
next;
}
my $or = $remoteprojs{$projid};
next if $or && $or->{'partition'}; # XXX how do we update them?
next if $or && $or->{'remoteurl'} eq $r->{'remoteurl'} && $or->{'remoteproject'} eq $r->{'remoteproject'};
delete $remoteprojs{$projid};
}
Expand Down

0 comments on commit 85344ec

Please sign in to comment.