Relay rotate pending command
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 606811e18b791784660b5145d9042b675f38dc31..a2af4c38aa40a9a040ecb5e911408367d9ef2213 100644 (file)
@@ -2651,6 +2651,10 @@ int cmd_stop_trace(struct ltt_session *session)
                goto error;
        }
 
+       if (session->rotate_relay_pending_timer_enabled) {
+               sessiond_timer_rotate_pending_stop(session);
+       }
+
        if (session->rotate_count > 0 && !session->rotate_pending) {
                ret = rename_active_chunk(session);
                if (ret) {
@@ -2949,6 +2953,10 @@ int cmd_destroy_session(struct ltt_session *session, int wpipe)
 
        DBG("Begin destroy session %s (id %" PRIu64 ")", session->name, session->id);
 
+       if (session->rotate_relay_pending_timer_enabled) {
+               sessiond_timer_rotate_pending_stop(session);
+       }
+
        /*
         * The rename of the current chunk is performed at stop, but if we rotated
         * the session after the previous stop command, we need to rename the
This page took 0.023984 seconds and 5 git commands to generate.