Don't iterate on events when adding context to channel
authorDavid Goulet <dgoulet@efficios.com>
Fri, 27 Jan 2012 21:39:17 +0000 (16:39 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 27 Jan 2012 21:39:17 +0000 (16:39 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/context.c

index b5345728a6a954b5bbe78c76f1ea9d4b7796c923..19eaa714521764de1bda512bde33f6123ddfe6d0 100644 (file)
@@ -313,7 +313,7 @@ int context_ust_add(struct ltt_ust_session *usess, int domain,
                char *channel_name)
 {
        int ret = LTTCOMM_OK, have_event = 0;
-       struct lttng_ht_iter iter, uiter;
+       struct lttng_ht_iter iter;
        struct lttng_ht *chan_ht;
        struct ltt_ust_channel *uchan = NULL;
        struct ltt_ust_event *uevent = NULL;
@@ -389,17 +389,6 @@ int context_ust_add(struct ltt_ust_session *usess, int domain,
                                ERR("Context added to channel %s failed", uchan->name);
                                continue;
                        }
-
-                       /* For all events in channel */
-                       cds_lfht_for_each_entry(uchan->events->ht, &uiter.iter, uevent,
-                                       node.node) {
-                               ret = add_uctx_to_event(usess, domain, uchan, uevent, ctx);
-                               if (ret < 0) {
-                                       ERR("Context add to event %s in channel %s failed",
-                                                       uevent->attr.name, uchan->name);
-                                       continue;
-                               }
-                       }
                }
        }
 
This page took 0.027338 seconds and 5 git commands to generate.