Fix: set session in output mode if URL are set afterwards
authorDavid Goulet <dgoulet@efficios.com>
Wed, 25 Jun 2014 20:35:54 +0000 (16:35 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 25 Jun 2014 21:02:00 +0000 (17:02 -0400)
Fixes #809

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 8ee641d8e07726b7826572fb19a745cef76514f1..7be103bed14badbc89c6964b7f3b4f0499eda25d 100644 (file)
@@ -1988,6 +1988,17 @@ int cmd_set_consumer_uri(int domain, struct ltt_session *session,
                }
        }
 
+       /*
+        * Make sure to set the session in output mode after we set URI since a
+        * session can be created without URL (thus flagged in no output mode).
+        */
+       session->output_traces = 1;
+       if (ksess) {
+               ksess->output_traces = 1;
+       } else if (usess) {
+               usess->output_traces = 1;
+       }
+
        /* All good! */
        ret = LTTNG_OK;
 
This page took 0.029246 seconds and 4 git commands to generate.