From e8f7fa117487c9b57f5a9699364c3bebf53c5cec Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 13 Jan 2020 13:40:12 -0500 Subject: [PATCH 1/1] Use lttng_trigger_is_equal when iterating over the trigger ht MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since a trigger can now have other type of actions then the notify one, we must account for it. We use lttng_trigger_equal to perform that task. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: I3300b0fff66e760152c1f7065d8fbfb945cce48e --- src/bin/lttng-sessiond/notification-thread-events.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c index c318f833c..7ba78ba31 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -2598,13 +2598,7 @@ int handle_notification_thread_command_unregister_trigger( cds_list_for_each_entry_safe(trigger_element, tmp, &trigger_list->list, node) { - const struct lttng_condition *current_condition = - lttng_trigger_get_const_condition( - trigger_element->trigger); - - assert(current_condition); - if (!lttng_condition_is_equal(condition, - current_condition)) { + if (!lttng_trigger_is_equal(trigger, trigger_element->trigger)) { continue; } -- 2.34.1