Skip to content

Commit

Permalink
[XrdCl] Set the tpckey to 'delegate' if delegating.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Dec 3, 2019
1 parent 73dcdf8 commit 9f4852e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/XrdCl/XrdClThirdPartyCopyJob.cc
Expand Up @@ -438,7 +438,11 @@ namespace XrdCl
//--------------------------------------------------------------------------
log->Debug( UtilityMsg, "Generating the destination TPC URL" );

tpcKey = GenerateKey();
if( delegate )
tpcKey = "delegate";
else
tpcKey = GenerateKey();

char *cgiBuff = new char[2048];
const char *cgiP = XrdOucTPC::cgiC2Dst( tpcKey.c_str(),
tpcSource.GetHostId().c_str(),
Expand Down

0 comments on commit 9f4852e

Please sign in to comment.