From: David Goulet Date: Wed, 25 Jun 2014 20:35:54 +0000 (-0400) Subject: Fix: set session in output mode if URL are set afterwards X-Git-Tag: v2.4.2~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cd0c51f0f295fd2990df5990809d720ac9f3f8cd;p=lttng-tools.git Fix: set session in output mode if URL are set afterwards Fixes #809 Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 8ee641d8e..7be103bed 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -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;