From 0240941e77a947fa08d661051a34b59fa8cb6a81 Mon Sep 17 00:00:00 2001
From: scott snyder <scott.snyder@cern.ch>
Date: Mon, 11 Sep 2017 14:54:56 +0200
Subject: [PATCH] ByteStreamCnvSvc: Removing references to transientAddress().

In order to make DataProxy properly thread-safe, it is helpful to remove
calls to DataProxy::transientAddress.  That way, it suffices to have
a lock in the DataProxy object.  Trying to add the needed accessor
methods to DataProxy and get rid of calls to transientAddress().
---
 Event/ByteStreamCnvSvc/src/ByteStreamEventStorageInputSvc.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Event/ByteStreamCnvSvc/src/ByteStreamEventStorageInputSvc.cxx b/Event/ByteStreamCnvSvc/src/ByteStreamEventStorageInputSvc.cxx
index 9871abb5081..fa0263f2658 100644
--- a/Event/ByteStreamCnvSvc/src/ByteStreamEventStorageInputSvc.cxx
+++ b/Event/ByteStreamCnvSvc/src/ByteStreamEventStorageInputSvc.cxx
@@ -520,7 +520,7 @@ StatusCode ByteStreamEventStorageInputSvc::generateDataHeader()
     if (ioc.isSuccess()) {
       const SG::DataProxy* ptmp = m_sgSvc->transientProxy(ClassID_traits<EventInfo>::ID(), "ByteStreamEventInfo");
       if (ptmp !=0) {
-        DataHeaderElement DheEI(ptmp->transientAddress(), 0, "ByteStreamEventInfo");
+        DataHeaderElement DheEI(ptmp, 0, "ByteStreamEventInfo");
         Dh->insert(DheEI);
       }
       //else ATH_MSG_ERROR("Failed to create EventInfo proxy " << ptmp);
-- 
GitLab