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>
Wed, 16 Oct 2019 22:22:32 +0000 (18:22 -0400)
commit3285a971b225891df3dc7c2796176ce1f94665fe
tree6086596e059c4c1c55b90b1d054f3d49ed6f1993
parent13e3b28009f1f922da6021e43254db86b78aa109
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.027613 seconds and 5 git commands to generate.