Fix: destroy session removes the default config file
authorPartha Pratim Mukherjee <ppm.floss@gmail.com>
Sun, 5 Jul 2015 19:31:15 +0000 (15:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 6 Jul 2015 01:39:22 +0000 (21:39 -0400)
commitbdae7d71473289a9e50c8d03188bd90cec8a5d57
treea409570af4b8d50bca96b29e74ce69d35ebb4eea
parent4f65bee19fd9e7cf43c95ef01f963107577573cf
Fix: destroy session removes the default config file

Destroy session command by default removes the default config file
without checking the current session. As a result when we call any
other command which expects a default session by calling
get_session_name() function, it fails.

This patch will fix this by checking that the default config file gets
removed only when destroy session is called with the current session.

Fixes: #887
Signed-off-by: Partha Pratim Mukherjee <ppm.floss@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/destroy.c
src/bin/lttng/conf.c
src/bin/lttng/conf.h
src/bin/lttng/utils.c
src/bin/lttng/utils.h
This page took 0.025311 seconds and 4 git commands to generate.