Fix ust app session started state on start trace
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.c
index 335c20ff18556f6df3705be8be6440ff14b1f00e..030358241f663548265493bd2459c00977be0013 100644 (file)
@@ -1935,6 +1935,9 @@ int ust_app_start_trace(struct ltt_ust_session *usess, struct ust_app *app)
                goto skip_setup;
        }
 
+       /* Indicate that the session has been started once */
+       ua_sess->started = 1;
+
        ret = create_ust_app_metadata(ua_sess, usess->pathname, app);
        if (ret < 0) {
                goto error_rcu_unlock;
@@ -1991,7 +1994,6 @@ int ust_app_start_trace(struct ltt_ust_session *usess, struct ust_app *app)
        if (ret < 0) {
                goto error_rcu_unlock;
        }
-       ua_sess->started = 1;
 
 skip_setup:
        /* This start the UST tracing */
This page took 0.024813 seconds and 5 git commands to generate.