]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
If the version is specified, query directly the CDB, not the list of files valid...
authorrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Feb 2011 10:46:52 +0000 (10:46 +0000)
committerrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Feb 2011 10:46:52 +0000 (10:46 +0000)
STEER/AliCDBGrid.cxx

index 99ceb2c5ef37999d5de381b41c3377a4537d857e..ac11594a14ef6639f27987c3b0a841b5ca51fadf 100644 (file)
@@ -407,8 +407,8 @@ AliCDBId* AliCDBGrid::GetEntryId(const AliCDBId& queryId) {
        validFileIds.SetOwner(1);
 
        // look for file matching query requests (path, runRange, version)
-       if(selectedId.GetFirstRun() == fRun &&
-                       fPathFilter.Comprises(selectedId.GetAliCDBPath()) && fVersion < 0 && !fMetaDataFilter){
+       if(selectedId.GetFirstRun() == fRun && fPathFilter.Comprises(selectedId.GetAliCDBPath()) &&
+                       fVersion == selectedId.GetVersion() && !fMetaDataFilter){
                // look into list of valid files previously loaded with AliCDBStorage::FillValidFileIds()
                AliDebug(2, Form("List of files valid for run %d was loaded. Looking there for fileids valid for path %s!",
                                        selectedId.GetFirstRun(), selectedId.GetPath().Data()));
@@ -416,8 +416,8 @@ AliCDBId* AliCDBGrid::GetEntryId(const AliCDBId& queryId) {
 
        } else {
                // List of files valid for reqested run was not loaded. Looking directly into CDB
-               AliDebug(2, Form("List of files valid for run %d was not loaded. Looking directly into CDB for fileids valid for path %s!",
-                                       selectedId.GetFirstRun(), selectedId.GetPath().Data()));
+               AliDebug(2, Form("List of files valid for run %d and version %d was not loaded. Looking directly into CDB for fileids valid for path %s!",
+                                       selectedId.GetFirstRun(), selectedId.GetVersion(), selectedId.GetPath().Data()));
 
                TString filter;
                MakeQueryFilter(selectedId.GetFirstRun(), selectedId.GetLastRun(), 0, filter);