Skip to content

Commit

Permalink
[XrdCl] TPC is only possible if both src/dst are remote.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Dec 7, 2018
1 parent 68ac6e8 commit b9f86dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/XrdCl/XrdClThirdPartyCopyJob.cc
Expand Up @@ -290,6 +290,12 @@ namespace XrdCl
const URL &source = GetSource();
const URL &target = GetTarget();

//--------------------------------------------------------------------------
// We can only do a TPC if both source and destination are remote files
//--------------------------------------------------------------------------
if( source.IsLocalFile() || target.IsLocalFile() )
return XRootDStatus( stError, errNotSupported );

//--------------------------------------------------------------------------
// Check the initial settings
//--------------------------------------------------------------------------
Expand Down

0 comments on commit b9f86dc

Please sign in to comment.