]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/CDB/AliCDBStorage.cxx
Update master to aliroot
[u/mrichter/AliRoot.git] / STEER / CDB / AliCDBStorage.cxx
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)) {