Fix: set session in output mode if URL are set afterwards
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 9ef9686bd40b3c29727451a9d52d11a4367e64f0..c1f5a4e70b7ce83545ce0858db2f781b563fdc26 100644 (file)
@@ -1779,6 +1779,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.023866 seconds and 4 git commands to generate.