Fix: disable JUL event on destroy
authorDavid Goulet <dgoulet@efficios.com>
Tue, 29 Jul 2014 18:11:48 +0000 (14:11 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 31 Jul 2014 15:20:33 +0000 (11:20 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/jul.c

index 7bb0d75bce80afe3265c4306033b4ea0cff3e47c..392e289b734d9a222c80236d2e22581071040c0d 100644 (file)
@@ -869,6 +869,15 @@ void jul_destroy_domain(struct jul_domain *dom)
        rcu_read_lock();
        cds_lfht_for_each_entry(dom->events->ht, &iter.iter, node, node) {
                int ret;
+               struct jul_event *event;
+
+               /*
+                * When destroying an event, we have to try to disable it on the agent
+                * side so the event stops generating data. The return value is not
+                * important since we have to continue anyway destroying the object.
+                */
+               event = caa_container_of(node, struct jul_event, node);
+               (void) jul_disable_event(event);
 
                ret = lttng_ht_del(dom->events, &iter);
                assert(!ret);
This page took 0.032925 seconds and 4 git commands to generate.