Skip to content
Snippets Groups Projects
Commit dd66dd26 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'duplicate_sid' into 'master'

Change GenericMetadataTool duplicate sid return code

See merge request atlas/athena!21897
parents c1599f09 826c4850
No related branches found
No related tags found
No related merge requests found
......@@ -322,8 +322,8 @@ StatusCode GenericMetadataTool<T,U>::buildAthenaInterface(const std::string& inp
// Make sure sid does not already exist in the MetaCont
for (auto it = mc->sources().begin(); it != mc->sources().end(); ++it) {
if (*it==sid) {
ATH_MSG_ERROR("Metadata already exists for sid " << sid);
return StatusCode::FAILURE; // Fail if sid already exists
ATH_MSG_WARNING("Metadata already exists for sid " << sid);
return StatusCode::SUCCESS; // Assume success if sid already exists
}
}
......
......@@ -290,8 +290,8 @@ StatusCode GenericMetadataToolNoAux<T>::buildAthenaInterface(const std::string&
// Make sure sid does not already exist in the MetaCont
for (auto it = mc->sources().begin(); it != mc->sources().end(); ++it) {
if (*it==sid) {
ATH_MSG_ERROR("Metadata already exists for sid " << sid);
return StatusCode::FAILURE; // Fail if sid already exists
ATH_MSG_WARNING("Metadata already exists for sid " << sid);
return StatusCode::SUCCESS; // Assume success if sid already exists
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment