From 3ed9cacdbd4d49f350659dafec56dbb8204da6c5 Mon Sep 17 00:00:00 2001 From: richterm Date: Tue, 14 Sep 2010 12:38:01 +0000 Subject: [PATCH] bugfix: CDBManager caching was overrun for objects on the GRID due to missing subversion bugfix: HLT/Calib/StreamerInfo could not be loaded because the run number was invalid in the request --- HLT/rec/AliHLTMiscImplementation.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HLT/rec/AliHLTMiscImplementation.cxx b/HLT/rec/AliHLTMiscImplementation.cxx index 7047fe495f4..7bacab9f770 100644 --- a/HLT/rec/AliHLTMiscImplementation.cxx +++ b/HLT/rec/AliHLTMiscImplementation.cxx @@ -113,6 +113,7 @@ AliCDBEntry* AliHLTMiscImplementation::LoadOCDBEntry(const char* path, int runNo // see header file for function documentation AliCDBManager* man = AliCDBManager::Instance(); if (!man) return NULL; + if (runNo<0) runNo=man->GetRun(); const char* uri=man->GetURI(path); if (!uri) return NULL; @@ -134,8 +135,8 @@ AliCDBEntry* AliHLTMiscImplementation::LoadOCDBEntry(const char* path, int runNo // there seems to be a problem with the caching of objects in the CDBManager // regardless what version is specified it returns the object from the cache AliCDBId id=entry->GetId(); - if (id.GetVersion()==version && - id.GetSubVersion()==subVersion) { + if ((version<0 || id.GetVersion()==version) && + (subVersion<0 || id.GetSubVersion()==subVersion)) { // entry in the cache has the correct version return entry; } -- 2.43.0