Skip to content
Snippets Groups Projects
Commit 21efd39e authored by Rene Brun's avatar Rene Brun
Browse files

From Gerri:

In SetEntryRange: re-initialize the cache parameters only if in learning phase; fixes a problem
                         making the cache de facto ineffective in PROOF


git-svn-id: http://root.cern.ch/svn/root/trunk@29125 27541ba8-7e3a-0410-8455-c3a389f83636
parent 3ae4b13b
No related branches found
No related tags found
No related merge requests found
......@@ -416,17 +416,21 @@ void TTreeCache::SetEntryRange(Long64_t emin, Long64_t emax)
// don't do it if the user has specified the branches.
if(fIsManual)
return;
fEntryMin = emin;
fEntryMax = emax;
fEntryNext = fEntryMin + fgLearnEntries;
if (gDebug > 0) printf("SetEntryRange: fEntryMin=%lld, fEntryMax=%lld, fEntryNext=%lld\n",fEntryMin,fEntryMax,fEntryNext);
fIsLearning = kTRUE;
fIsManual = kFALSE;
fNbranches = 0;
fZipBytes = 0;
if (fBrNames) fBrNames->Delete();
if (gDebug > 0)
Info("SetEntryRange", "fEntryMin=%lld, fEntryMax=%lld, fEntryNext=%lld",
fEntryMin, fEntryMax, fEntryNext);
if (fIsLearning) {
// Restart learning
fIsLearning = kTRUE;
fIsManual = kFALSE;
fNbranches = 0;
fZipBytes = 0;
if (fBrNames) fBrNames->Delete();
}
}
//_____________________________________________________________________________
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment