Fix: relayd: incorrect use of lfht add_unique API
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Jul 2024 20:38:29 +0000 (20:38 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 30 Jul 2024 01:26:50 +0000 (01:26 +0000)
commit2f566a887f7803f546abe1e44456ae8314ffec08
treed4b36f6884a90e9a094b163f16151b3f1090fbcd
parent0f825a63e2b14424244335c3b28c14c26158a423
Fix: relayd: incorrect use of lfht add_unique API

cds_lfht_add_unique is misused in relay_index_add_unique. The address
of the node is used instead of the address of the key for both the
key parameter and to compute the hash of the index entry's key.

This caused problems in an upcoming change that changes the layout
of the lttng_ht node since the key is no longer the first member
of the node.

Change-Id: Iec67f78b8ced4f4e520dc0dbebda8d30e283aa38
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/index.cpp
This page took 0.024721 seconds and 4 git commands to generate.