Implement rotation ongoing/completed commands
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 6262750866db73d16f193ebe00e7c34475a1e3c7..1041b9f1a106d4090fff9d7422f2ea96d0b8333f 100644 (file)
@@ -4560,6 +4560,13 @@ int cmd_rotate_session(struct ltt_session *session,
        session->current_archive_id++;
        session->rotate_pending = true;
        session->rotation_state = LTTNG_ROTATION_STATE_ONGOING;
+       ret = notification_thread_command_session_rotation_ongoing(
+                       notification_thread_handle,
+                       session->name, session->current_archive_id);
+       if (ret) {
+               ret = LTTNG_ERR_UNK;
+               goto end;
+       }
 
        /*
         * Create the path name for the next chunk.
This page took 0.024041 seconds and 4 git commands to generate.