Skip to content

Commit f84896b

Browse files
authored
Merge 0b4e8b1 into sapling-pr-archive-ktf
2 parents 8d7ee25 + 0b4e8b1 commit f84896b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Framework/Core/src/DataProcessingDevice.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ static auto toBeforwardedMessageSet = [](std::vector<ChannelIndex>& cachedForwar
615615
// part of a split payload. All the others will use the same.
616616
// but always check if we have a sequence of multiple payloads
617617
if (fdh->splitPayloadIndex == 0 || fdh->splitPayloadParts <= 1 || total > 1) {
618+
cachedForwardingChoices.clear();
618619
proxy.getMatchingForwardChannelIndexes(cachedForwardingChoices, *fdh, fdph->startTime);
619620
}
620621
return cachedForwardingChoices.empty() == false;
@@ -691,9 +692,8 @@ static auto forwardInputs = [](ServiceRegistryRef registry, TimesliceSlot slot,
691692

692693
// In case of more than one forward route, we need to copy the message.
693694
// This will eventually use the same mamory if running with the same backend.
694-
if (cachedForwardingChoices.size() > 1) {
695-
copy = true;
696-
}
695+
bool copy = copyByDefault || cachedForwardingChoices.size();
696+
697697
auto* dh = o2::header::get<DataHeader*>(header->GetData());
698698
auto* dph = o2::header::get<DataProcessingHeader*>(header->GetData());
699699

0 commit comments

Comments
 (0)