Skip to content

Commit

Permalink
Fix "File too long" error in merge outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dario Berzano committed Jun 5, 2018
1 parent 98a95d1 commit 30e6899
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 @@ -188,6 +188,9 @@ void CopyCPass(const char* alienFileList, const char* outputFileList, Int_t time
TString dst=src;
dst.ReplaceAll("alien:///","");
dst.ReplaceAll("/","_");
if (dst.Length() > 240) {
dst = src.MD5();
}
Bool_t result = TFile::Cp(src.Data(),dst.Data(),kTRUE);
AliSysInfo::AddStamp(dst.Data(),counter, result);
if (result)
Expand Down

0 comments on commit 30e6899

Please sign in to comment.