]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correct cleaning of valid ids in QueryCDB
authorrgrosso <Raffaele.Grosso@cern.ch>
Wed, 26 Feb 2014 16:00:29 +0000 (17:00 +0100)
committerrgrosso <Raffaele.Grosso@cern.ch>
Wed, 26 Feb 2014 21:20:05 +0000 (22:20 +0100)
STEER/CDB/AliCDBManager.cxx
STEER/CDB/AliCDBStorage.cxx

index a8067a35ee83231e0724856badbd259d46f55c21..e9e55f17a5edae1a876b259cfcceb9c28da7d82d 100644 (file)
@@ -503,7 +503,7 @@ AliCDBStorage* AliCDBManager::GetStorage(const AliCDBParam* param) {
         if( aStorage->GetType() == "alien" || aStorage->GetType() == "local" )
           aStorage->QueryCDB(fRun);
       }
-    return aStorage;
+      return aStorage;
     }
   }
 
index 64073629c7dd4ee3b28b5cf7a0d9f0488a12d69d..01a7e9712c5705e0d64eadd0f4423084b4a1b14a 100644 (file)
@@ -439,7 +439,7 @@ void AliCDBStorage::QueryCDB(Int_t run, const char* pathFilter,
   // In fValidFileIds, clear id for the same 3level path, if any
   AliDebug(3, Form("Clearing list of CDB Id's previously loaded for path \"%s\"", pathFilter));
   AliCDBPath filter(pathFilter);
-  for (Int_t i=0; i<fValidFileIds.GetEntries(); ++i) {
+  for (Int_t i=fValidFileIds.GetEntries()-1; i>=0; --i) {
     AliCDBId *rmMe = dynamic_cast<AliCDBId*>(fValidFileIds.At(i));
     AliCDBPath rmPath = rmMe->GetAliCDBPath();
     if (filter.Comprises(rmPath)) {