}
}
- ret = lttng_rotation_schedule_attr_set_session_name(attr, session_name);
- if (ret < 0) {
- goto error;
- }
-
if (lttng_opt_mi) {
ret = mi_lttng_writer_write_element_string(writer,
mi_lttng_element_session_name, session_name);
MSG("Disabling rotation based on size on session %s", session_name);
}
- ret = lttng_rotation_set_schedule(attr);
+ ret = lttng_rotation_set_schedule(session_name, attr);
if (ret) {
ERR("%s", lttng_strerror(ret));
if (lttng_opt_mi) {