projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: do not repurpose iterator while it is being used
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
notification-thread-events.c
diff --git
a/src/bin/lttng-sessiond/notification-thread-events.c
b/src/bin/lttng-sessiond/notification-thread-events.c
index 9cc91cc4006615b0d3aa171cec01e2d3ee8faec8..9d82b8313bfc59701619378a22cb69550bfc5eb4 100644
(file)
--- a/
src/bin/lttng-sessiond/notification-thread-events.c
+++ b/
src/bin/lttng-sessiond/notification-thread-events.c
@@
-1931,6
+1931,7
@@
int bind_trigger_to_matching_channels(const struct lttng_trigger *trigger,
channels_ht_node) {
struct lttng_trigger_list_element *trigger_list_element;
struct lttng_channel_trigger_list *trigger_list;
channels_ht_node) {
struct lttng_trigger_list_element *trigger_list_element;
struct lttng_channel_trigger_list *trigger_list;
+ struct cds_lfht_iter lookup_iter;
if (!trigger_applies_to_channel(trigger, channel)) {
continue;
if (!trigger_applies_to_channel(trigger, channel)) {
continue;
@@
-1940,8
+1941,8
@@
int bind_trigger_to_matching_channels(const struct lttng_trigger *trigger,
hash_channel_key(&channel->key),
match_channel_trigger_list,
&channel->key,
hash_channel_key(&channel->key),
match_channel_trigger_list,
&channel->key,
- &iter);
- node = cds_lfht_iter_get_node(&iter);
+ &
lookup_
iter);
+ node = cds_lfht_iter_get_node(&
lookup_
iter);
assert(node);
trigger_list = caa_container_of(node,
struct lttng_channel_trigger_list,
assert(node);
trigger_list = caa_container_of(node,
struct lttng_channel_trigger_list,
This page took
0.028038 seconds
and
5
git commands to generate.