trace-chunk: Introduce chunk "path", relayd session "ongoing_rotation", sessiond...
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 6f824bf316811c2fa486cb4a661abcca5c5b4c3f..db07082dbc4e0e50620d4b38d9bf27c97ac8b787 100644 (file)
@@ -3328,9 +3328,7 @@ int cmd_destroy_session(struct ltt_session *session,
                session->rotate_size = 0;
        }
 
-       if (session->most_recent_chunk_id.is_set &&
-                       session->most_recent_chunk_id.value != 0 &&
-                       session->current_trace_chunk && session->output_traces) {
+       if (session->rotated && session->current_trace_chunk && session->output_traces) {
                /*
                 * Perform a last rotation on destruction if rotations have
                 * occurred during the session's lifetime.
This page took 0.026048 seconds and 5 git commands to generate.