From: minima Date: Sun, 26 Aug 2001 13:08:13 +0000 (+0000) Subject: reverse the orgin and from on sending TO arclusters X-Git-Tag: R_1_48~79 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b91254375e95e7931312c4177ee390866f82c648;p=spider.git reverse the orgin and from on sending TO arclusters --- diff --git a/perl/DXMsg.pm b/perl/DXMsg.pm index f3c2172c..c87fd2e4 100644 --- a/perl/DXMsg.pm +++ b/perl/DXMsg.pm @@ -686,7 +686,15 @@ sub start_msg $busy{$self->{tonode}} = $self; $work{$self->{tonode}} = $self; $self->{lastt} = $main::systime; - $dxchan->send(DXProt::pc28($self->{tonode}, $self->{fromnode}, $self->{to}, $self->{from}, $self->{t}, $self->{private}, $self->{subject}, $self->{origin}, $self->{rrreq})); + my ($fromnode, $origin); + if ($dxchan->is_arcluster) { + $fromnode = $self->{origin}; + $origin = $self->{fromnode}; + } else { + $fromnode = $self->{fromnode}; + $origin = $self->{origin}; + } + $dxchan->send(DXProt::pc28($self->{tonode}, $fromnode, $self->{to}, $self->{from}, $self->{t}, $self->{private}, $self->{subject}, $origin, $self->{rrreq})); } # get the ref of a busy node