AliCDBParam* param = CreateParameter(dbString);
if (!param) {
return NULL;
- }
+ }
AliCDBStorage* aStorage = GetStorage(param);
AliCDBStorage* AliCDBManager::GetStorage(const AliCDBParam* param) {
// get storage object from AliCDBParam object
- // if the list of active storages already contains
+ // if the list of active storages already contains
// the requested storage, return it
AliCDBStorage* aStorage = GetActiveStorage(param);
if (aStorage) {
aStorage = factory->Create(param);
if (aStorage) {
PutActiveStorage(param->CloneParam(), aStorage);
- // if default storage is not set, set to this storage
- if(!fDefaultStorage){
- fDefaultStorage=aStorage;
- AliInfo(Form("Default storage set to: %s",(param->GetURI()).Data()));
- }
aStorage->SetURI(param->GetURI());
return aStorage;
}
void AliCDBManager::SetDefaultStorage(const char* dbString) {
// sets default storage from URI string
- fDefaultStorage = GetStorage(dbString);
+ AliInfo(Form("Setting Default storage to: %s",dbString));
+ fDefaultStorage = GetStorage(dbString);
}
//_____________________________________________________________________________
//_____________________________________________________________________________
AliCDBParam* AliCDBManager::SelectSpecificStorage(const TString& path) {
-// select storage valid for path from the list of specific storages
+// select storage valid for path from the list of specific storages
TIter iter(&fSpecificStorages);
TObjString *aCalibType;