]> dxcluster.org Git - spider.git/commitdiff
reverse the orgin and from on sending TO arclusters
authorminima <minima>
Sun, 26 Aug 2001 13:08:13 +0000 (13:08 +0000)
committerminima <minima>
Sun, 26 Aug 2001 13:08:13 +0000 (13:08 +0000)
perl/DXMsg.pm

index f3c2172cfba7c45c70e7fa5d3c12353853dd2b92..c87fd2e4ec5b316433e9749f28aa525a0098cb8d 100644 (file)
@@ -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