Skip to content

Commit

Permalink
Refs #21349. Using new compute_key
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware committed Jul 15, 2024
1 parent 3759961 commit 08aa4d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/fastdds/subscriber/history/DataReaderHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ DataReaderHistory::DataReaderHistory(
if (type_ != nullptr)
{
EPROSIMA_LOG_INFO(SUBSCRIBER, "Getting Key of change with no Key transmitted");
type_->deserialize(&a_change->serializedPayload, get_key_object_);
bool is_key_protected = false;
#if HAVE_SECURITY
is_key_protected = mp_reader->getAttributes().security_attributes().is_key_protected;
#endif // if HAVE_SECURITY
return type_->compute_key(get_key_object_, &a_change->instanceHandle, is_key_protected);
return type_->compute_key(&a_change->serializedPayload, &a_change->instanceHandle,
is_key_protected);
}

EPROSIMA_LOG_WARNING(SUBSCRIBER, "NO KEY in topic: " << topic_name_
Expand Down

0 comments on commit 08aa4d1

Please sign in to comment.