Skip to content

Commit

Permalink
[XrdCl] Pass # streams to TPC destination.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jun 26, 2018
1 parent c0a02ba commit 5b194b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/XrdCl/XrdClThirdPartyCopyJob.cc
Expand Up @@ -144,6 +144,10 @@ namespace XrdCl
pProperties->Get( "force", force );
pProperties->Get( "coerce", coerce );

int nbStrm = 0;
XrdCl::Env *env = XrdCl::DefaultEnv::GetEnv();
env->GetInt( "SubStreamsPerChannel", nbStrm );

//--------------------------------------------------------------------------
// Generate the destination CGI
//--------------------------------------------------------------------------
Expand All @@ -158,7 +162,7 @@ namespace XrdCl
const char *cgiP = XrdOucTPC::cgiC2Dst( tpcKey.c_str(),
tpcSource.GetHostId().c_str(),
tpcSource.GetPath().c_str(),
0, cgiBuff, 2048 );
0, cgiBuff, 2048, nbStrm );
if( *cgiP == '!' )
{
log->Error( UtilityMsg, "Unable to setup target url: %s", cgiP+1 );
Expand Down

0 comments on commit 5b194b8

Please sign in to comment.