From 88c5d53fec6b1e0e5499a9d026c65d3bfcf7faca Mon Sep 17 00:00:00 2001 From: ivana Date: Mon, 21 Apr 2008 07:27:47 +0000 Subject: [PATCH] Do not set default CDB storage, if not defined, but return Fatal. --- MUON/AliMUONDataInterface.cxx | 10 +++------- MUON/AliMUONMCDataInterface.cxx | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/MUON/AliMUONDataInterface.cxx b/MUON/AliMUONDataInterface.cxx index deee01130a0..d6518cae4ca 100644 --- a/MUON/AliMUONDataInterface.cxx +++ b/MUON/AliMUONDataInterface.cxx @@ -93,13 +93,9 @@ fIterator(0x0) ++fgInstanceCounter; - if (AliCDBManager::Instance() != NULL) - { - if (AliCDBManager::Instance()->GetDefaultStorage() == NULL) - { - AliInfo("Default storage for CDB not set."); - AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT"); - } + if ( AliCDBManager::Instance() != NULL && + AliCDBManager::Instance()->GetDefaultStorage() == NULL ) { + AliFatal("CDB default storage not defined."); } Open(filename); diff --git a/MUON/AliMUONMCDataInterface.cxx b/MUON/AliMUONMCDataInterface.cxx index 062ae8f6ccb..3a3ca33e57a 100644 --- a/MUON/AliMUONMCDataInterface.cxx +++ b/MUON/AliMUONMCDataInterface.cxx @@ -82,13 +82,9 @@ fIterator(0x0) ++fgInstanceCounter; - if (AliCDBManager::Instance() != NULL) - { - if (AliCDBManager::Instance()->GetDefaultStorage() == NULL) - { - AliInfo("Default storage for CDB not set."); - AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT"); - } + if ( AliCDBManager::Instance() != NULL && + AliCDBManager::Instance()->GetDefaultStorage() == NULL ) { + AliFatal("CDB default storage not defined."); } Open(filename); -- 2.43.0