Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
ret = cmd_rotate_session(session, NULL);
if (ret == -LTTNG_ERR_ROTATION_PENDING) {
DBG("Rotate already pending, subscribe to the next threshold value");
ret = cmd_rotate_session(session, NULL);
if (ret == -LTTNG_ERR_ROTATION_PENDING) {
DBG("Rotate already pending, subscribe to the next threshold value");
} else if (ret != LTTNG_OK) {
ERR("[rotation-thread] Failed to rotate on size notification with error: %s",
lttng_strerror(ret));
} else if (ret != LTTNG_OK) {
ERR("[rotation-thread] Failed to rotate on size notification with error: %s",
lttng_strerror(ret));