Fix: sessiond: previously created channel cannot be enabled
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 7 Oct 2021 20:19:41 +0000 (16:19 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 18 Oct 2021 19:12:38 +0000 (15:12 -0400)
commit19bfbd16a509837bbe57f9c00d6c2a1f0933a5a9
tree47d5adee8b754fe172f845c4a2e19c6de0777d07
parent77ef9153bfe46228f4f5d2c02d7e89ce76d5658b
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 <jonathan.rajotte-julien@efficios.com>
Change-Id: I8e7d62b7e97246e65f1cf9022270293a6dd34cc9
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c
This page took 0.025367 seconds and 4 git commands to generate.