Fix: Don't notify agent of non-app context addition
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 9 Feb 2016 20:16:49 +0000 (15:16 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 12 Feb 2016 22:54:03 +0000 (17:54 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/context.c

index 1725c6a107d429616b09dab83d01623ba722ad2a..9a5738799192a7a26de2cab6e04b361477ac6bd7 100644 (file)
@@ -113,7 +113,13 @@ static int add_uctx_to_channel(struct ltt_ust_session *usess,
        case LTTNG_DOMAIN_JUL:
        case LTTNG_DOMAIN_LOG4J:
        {
        case LTTNG_DOMAIN_JUL:
        case LTTNG_DOMAIN_LOG4J:
        {
-               struct agent *agt = trace_ust_find_agent(usess, domain);
+               struct agent *agt;
+
+               if (ctx->ctx != LTTNG_EVENT_CONTEXT_APP_CONTEXT) {
+                       /* Other contexts are not needed by the agent. */
+                       break;
+               }
+               agt = trace_ust_find_agent(usess, domain);
 
                if (!agt) {
                        agt = agent_create(domain);
 
                if (!agt) {
                        agt = agent_create(domain);
This page took 0.025316 seconds and 4 git commands to generate.