}
// if snapshot flag is set, try getting from the snapshot
- if(fSnapshotMode && query.GetFirstRun() == fRun)
- // entry = (AliCDBEntry*) fSnapshotCache->GetValue(query.GetPath()); // not possible,
- // all the map would be charged in memory from the snapshot anyway.
- entry = GetEntryFromSnapshot(query.GetPath());
- if(entry) {
+ // but in the case a specific storage is specified for this path
+ AliCDBParam *aPar=SelectSpecificStorage(query.GetPath());
+ if(!aPar){
+ if(fSnapshotMode && query.GetFirstRun() == fRun)
+ // entry = (AliCDBEntry*) fSnapshotCache->GetValue(query.GetPath()); // not possible,
+ // all the map would be charged in memory from the snapshot anyway.
+ entry = GetEntryFromSnapshot(query.GetPath());
+ if(entry) {
AliDebug(2, Form("Object %s retrieved from the snapshot !!",query.GetPath().Data()));
if(query.GetFirstRun() == fRun) // no need to check fCache, fSnapshotMode not possible otherwise
CacheEntry(query.GetPath(), entry);
fIds->Add(entry->GetId().Clone());
return entry;
+ }
}
// Entry is not in cache (and, in case we are in snapshot mode, not in the snapshot either)
AliError("No storage set!");
return NULL;
}
- AliCDBStorage *aStorage=0;
- AliCDBParam *aPar=SelectSpecificStorage(query.GetPath());
+ AliCDBStorage *aStorage=0;
if(aPar) {
aStorage=GetStorage(aPar);
TString str = aPar->GetURI();
Bool_t fLock; //! Lock flag, if ON default storage and run number cannot be reset
Bool_t fSnapshotMode; //! flag saying if we are in snapshot mode
- //TMap* fSnapshotCache; //! pointer to the cache of objects in the snapshot
- //TList* fSnapshotIdsList; //! pointer to the list of the object Id's in the snapshot
TFile *fSnapshotFile;
Bool_t fRaw; // flag to say whether we are in the raw case