X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdisable_rotation.c;h=b179e91ce33e8f91e94a3d741d9ef7a0a34e03ab;hp=a4a97903017764f461c6da3f66c4d256c6c84064;hb=dbd512ea8aa5349849aeeccda6130aa9e28cf23c;hpb=0ca413e056cf24ec5424cde5c78227138b0782c7 diff --git a/src/bin/lttng/commands/disable_rotation.c b/src/bin/lttng/commands/disable_rotation.c index a4a979030..b179e91ce 100644 --- a/src/bin/lttng/commands/disable_rotation.c +++ b/src/bin/lttng/commands/disable_rotation.c @@ -77,11 +77,6 @@ static int setup_rotate(char *session_name, uint64_t timer, uint64_t size) } } - 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); @@ -99,7 +94,7 @@ static int setup_rotate(char *session_name, uint64_t timer, uint64_t size) 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) {