Fix: sessiond: session destruction errors are unreported
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Oct 2019 22:22:32 +0000 (18:22 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 17 Oct 2019 15:16:36 +0000 (11:16 -0400)
commit57b5b1cfef8ab53dadacaeef3c37506d73f403a0
tree5b9e12e35db85a9c94a7e34405e88c445cc5cd45
parent03304e370fdf281fef8df4a0faa2bc3d1d15eadc
Fix: sessiond: session destruction errors are unreported

The session daemon does not report errors which occur while setting-up
a session's destruction. For instance, if the implicit rotation or
rotation to the "null" chunk fails. While the session will be
destroyed (it will no longer appear in session listings), the session
daemon could have failed to destroy it properly and it could be
corrupted/unreadable.

This reports those errors so the user does not expect the session to
be readable (but it _could_ be).

This was discovered while investigating another, unrelated, issue.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/lttng/lttng-error.h
src/bin/lttng-sessiond/cmd.c
src/bin/lttng/commands/destroy.c
src/common/error.c
This page took 0.027018 seconds and 4 git commands to generate.