From: Jonathan Rajotte Date: Thu, 7 Oct 2021 20:19:41 +0000 (-0400) Subject: Fix: sessiond: previously created channel cannot be enabled X-Git-Tag: v2.11.8~1 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=19bfbd16a509837bbe57f9c00d6c2a1f0933a5a9;hp=19bfbd16a509837bbe57f9c00d6c2a1f0933a5a9;p=lttng-tools.git Fix: sessiond: previously created channel cannot be enabled Observed issue ============== A previously created channel cannot be enabled back once a session is started. Cause ===== The check validating that the session was started is to early in the `cmd_enable_channel` function. Solution ======== Move the check at the creation code path when the channel is not found. Known drawbacks ========= None. Signed-off-by: Jonathan Rajotte Change-Id: I8e7d62b7e97246e65f1cf9022270293a6dd34cc9 Signed-off-by: Jérémie Galarneau ---