Skip to content

Commit f7cbbdd

Browse files
committed
fixup! DPL Analysis: use shm metadata in CCDB tables instead of binary view
1 parent b554115 commit f7cbbdd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Framework/Core/include/Framework/DataAllocator.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242

4343
// Do not change this for a full inclusion of fair::mq::Device.
4444
#include <fairmq/FwdDecls.h>
45-
#include <shmem/Message.h>
45+
#include <fairmq/Version.h>
46+
#if (FAIRMQ_VERSION_DEC >= 111000)
47+
#include <fairmq/shmem/Message.h>
48+
#endif
4649

4750
namespace arrow
4851
{
@@ -608,9 +611,11 @@ DataAllocator::CacheId DataAllocator::adoptContainer(const Output& spec, Contain
608611
// clone is indistinguishable from the original, we can keep sending
609612
// the original.
610613
cacheId.value = context.addToCache(payloadMessage);
614+
#if (FAIRMQ_VERSION_DEC >= 111000)
611615
auto meta = dynamic_cast<fair::mq::shmem::Message*>(payloadMessage.get())->GetMeta();
612616
cacheId.handle = meta.fHandle;
613617
cacheId.segment = meta.fSegmentId;
618+
#endif
614619
}
615620

616621
context.add<MessageContext::TrivialObject>(std::move(headerMessage), std::move(payloadMessage), routeIndex);

0 commit comments

Comments
 (0)