if (revents & (LPOLLERR | LPOLLHUP | LPOLLRDHUP)) {
ret = lttng_poll_del(&state->events, fd);
if (ret) {
- ERR("[rotation-thread] Failed to remove consumer rotation pipe from poll set");
+ ERR("[rotation-thread] Failed to remove consumer "
+ "rotation pipe from poll set");
}
goto end;
}
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;
}
ERR("Failed to rename completed rotation chunk");
goto end;
}
+ channel_info->session->rotate_pending = false;
}
channel_rotation_info_destroy(channel_info);