Fix: keep active session state on redundant start command
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 4ce2d43fab11159d5ebb64ae4b9147769558ecc7..2c2ce285a676461238703f2cb77a285cdb5a66b6 100644 (file)
@@ -2651,7 +2651,8 @@ int cmd_start_trace(struct ltt_session *session)
        /* Is the session already started? */
        if (session->active) {
                ret = LTTNG_ERR_TRACE_ALREADY_STARTED;
-               goto error;
+               /* Perform nothing */
+               goto end;
        }
 
        if (session->rotation_state == LTTNG_ROTATION_STATE_ONGOING &&
@@ -2779,6 +2780,7 @@ error:
                session->cleared_after_last_stop =
                                session_cleared_after_last_stop;
        }
+end:
        return ret;
 }
 
This page took 0.02416 seconds and 5 git commands to generate.