Stop sessions before destroying on teardown of session daemon
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 4 Dec 2018 22:46:00 +0000 (17:46 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 5 Dec 2018 20:16:21 +0000 (15:16 -0500)
Stopping sessions ensures that trace data is no longer produced
for a session which will allow pending rotations to complete.

It also ensure that no data is produced beyond the last rename
of a rotated session's output folder.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index 579d49ab8d5c1eff1c16ed8425e4f257dedd687a..6d0fb42e393e8ab072c25c5016c9eb776073e0c6 100644 (file)
@@ -1705,6 +1705,7 @@ static void destroy_all_sessions_and_wait(void)
                if (session->destroyed) {
                        goto unlock_session;
                }
+               (void) cmd_stop_trace(session);
                (void) cmd_destroy_session(session,
                                notification_thread_handle);
        unlock_session:
This page took 0.037551 seconds and 5 git commands to generate.