send the rotate pending to the relay
[deliverable/lttng-tools.git] / src / bin / lttng-sessiond / rotation-thread.c
index e50903f691405b213a70bc04993a0521c4c723ea..24c9715a167e50c11cc0af54f8df51282ca9d7ce 100644 (file)
@@ -313,6 +313,7 @@ int handle_channel_rotation_pipe(int fd, uint32_t revents,
                time_t now = time(NULL);
 
                if (now == (time_t) -1) {
+                       channel_info->session->rotate_status = LTTNG_ROTATE_ERROR;
                        ret = LTTNG_ERR_ROTATE_NOT_AVAILABLE;
                        goto end;
                }
@@ -322,6 +323,7 @@ int handle_channel_rotation_pipe(int fd, uint32_t revents,
                        ERR("Failed to rename completed rotation chunk");
                        goto end;
                }
+               channel_info->session->rotate_pending = false;
        }
 
        channel_rotation_info_destroy(channel_info);
This page took 0.033885 seconds and 5 git commands to generate.