Fix: relayd: viewer session trace chunk not released on detach
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 14 Nov 2019 22:12:08 +0000 (17:12 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 14 Nov 2019 22:12:08 +0000 (17:12 -0500)
commitb3feb91b1a4acba45c9d446688cdc828d57d0b66
tree805a08f95c2e185a88e90ed8c205feb568ee5553
parent343a7a9847cf64943c5f33043b7b931fca48bdc0
Fix: relayd: viewer session trace chunk not released on detach

The 'attach' command on a viewer session expects (asserts) the trace
chunk of the viewer session to be NULL. This is reasonable as there is
no reason to hold a reference to a trace chunk while no clients are
attached.

Release the reference to the trace chunk on detach. The relay
session's trace chunk will be re-sampled (copied) when the next client
attaches to the viewer session.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/viewer-session.c
This page took 0.026929 seconds and 5 git commands to generate.