Skip to content

Commit

Permalink
Ensure local files contain remote name in merge
Browse files Browse the repository at this point in the history
Complements #138 and only affects release validation processing
  • Loading branch information
Dario Berzano committed Jun 5, 2018
1 parent 30e6899 commit fa3d55a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DataProc/MergeOutputs/mergeByComponent.C
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ void CopyCPass(const char* alienFileList, const char* outputFileList, Int_t time
dst.ReplaceAll("/","_");
if (dst.Length() > 240) {
dst = src.MD5();
dst.Append("_");
dst.Append(gSystem->BaseName(src));
cout << "Note: long file name " << src << " will be copied locally as " << dst << endl;
}
Bool_t result = TFile::Cp(src.Data(),dst.Data(),kTRUE);
AliSysInfo::AddStamp(dst.Data(),counter, result);
Expand Down

0 comments on commit fa3d55a

Please sign in to comment.