Skip to content
Snippets Groups Projects
Commit cb37e077 authored by Philippe Canal's avatar Philippe Canal
Browse files

Reduce the number of call to 'flush' in case of incremental merger

git-svn-id: http://root.cern.ch/svn/root/trunk@41428 27541ba8-7e3a-0410-8455-c3a389f83636
parent fc3e704e
No related branches found
No related tags found
No related merge requests found
......@@ -709,7 +709,11 @@ Bool_t TFileMerger::MergeRecursive(TDirectory *target, TList *sourcelist, Int_t
}
}
// save modifications to the target directory.
target->SaveSelf(kTRUE);
if (! type&kIncremental) {
// In case of incremental build, we will call Write on the top directory/file, so we do not need
// to call SaveSelf explicilty.
target->SaveSelf(kTRUE);
}
return status;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment