]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
bugfix: checking the availability of a requested object before calling AliCDBStorage...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Oct 2010 20:52:51 +0000 (20:52 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Oct 2010 20:52:51 +0000 (20:52 +0000)
HLT/pendolino/AliHLTPendolino.cxx

index 634ae1f73fcd0ec3b8439faeaa88c88849add998..6ae9b313eee1c630254048fe3117cc631d483747 100644 (file)
@@ -354,16 +354,12 @@ AliCDBEntry* AliHLTPendolino::GetFromOCDB(const char* detector,
                return NULL;
        }
        
-       entry = hcdb->Get(path, fRunNumber);
-
-       if (entry == 0) {
-               TString msg(" ~~~ WARNING: no valid entry for '");
-               msg += path.GetPath() + "' in HCDB for run number ";
-               msg += fRunNumber;
-               Log(fgkHLTInterfaceModule, msg.Data());
+       if (hcdb->GetLatestVersion(path.GetPath(), fRunNumber)<0) {
+               return NULL;
        }
 
-       return entry;
+       return hcdb->Get(path, fRunNumber);
+
        
 /*
        AliCDBEntry* entry = 0;