Skip to content

Commit aa1a682

Browse files
Add clarification comment in TopicDataType::compute_key(SerializedPayload_t, ...)
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
1 parent 225fdb6 commit aa1a682

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ddspipe_participants/src/cpp/types/dds/TopicDataType.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ bool TopicDataType::compute_key(
107107
fastdds::rtps::InstanceHandle_t& handle,
108108
bool /* = false */)
109109
{
110+
// NOTE: This method returns false because Fast DDS always sends the KEY_HASH in inline QoS.
111+
// As a result, the reader will never call this method when communicating with a Fast DDS writer.
112+
// This would only be needed if receiving data from another DDS vendor that omits the KEY_HASH.
113+
// Workaround in that case (different DDS vendor that omits KEY_HASH): set expects_inline_qos_ to
114+
// true in DataReaderQos
110115
return false;
111116
}
112117

0 commit comments

Comments
 (0)