Fix: return 0 on successful location serialization
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index ba7dd3d4dd9452b92328547f7f09e24a7e389cf1..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.
@@ -4903,6 +4910,7 @@ int cmd_rotation_set_schedule(struct ltt_session *session,
                        if (ret) {
                                ERR("Failed to disable session rotation timer in ROTATION_SET_SCHEDULE command");
                                ret = LTTNG_ERR_UNK;
+                               goto end;
                        }
                }
                break;
This page took 0.02478 seconds and 4 git commands to generate.