Skip to content
Snippets Groups Projects
Commit 3f4ef42a authored by Charles Leggett's avatar Charles Leggett
Browse files

SGHiveMgrSvc: re-parse DataObjID if munged

See merge request atlas/athena!7377

Former-commit-id: 9df2d225
parents a3a4df9c 6a52f5dc
No related branches found
No related tags found
No related merge requests found
...@@ -155,7 +155,20 @@ bool HiveMgrSvc::exists( const DataObjID& id) { ...@@ -155,7 +155,20 @@ bool HiveMgrSvc::exists( const DataObjID& id) {
// don't care if it's slow // don't care if it's slow
std::string key = id.key(); std::string key = id.key();
key.erase(0,key.find("+")+1); key.erase(0,key.find("+")+1);
return m_hiveStore->transientContains(id.clid(), id.key());
if (id.clid() == 0) {
// this is an ugly hack in case the DataObjID gets munged
// upstream, and we have to re-separate it into (class,key)
// from "class/key"
std::string cl = id.fullKey();
cl.erase(cl.find("/"),cl.length());
DataObjID d2(cl,key);
return m_hiveStore->transientContains(d2.clid(), key);
} else {
return m_hiveStore->transientContains(id.clid(), key);
}
} }
StatusCode HiveMgrSvc::initialize() { StatusCode HiveMgrSvc::initialize() {
......
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