Fix: condition unsubscription error leaves session locked
[lttng-tools.git] / src / bin / lttng-sessiond / rotation-thread.c
index 59b7123575eca788add644885a3282acd2719ed3..df70f8fd57e49a19c382b21c69eaf56c1f68047c 100644 (file)
@@ -815,7 +815,7 @@ int handle_condition(const struct lttng_condition *condition,
        ret = unsubscribe_session_consumed_size_rotation(session,
                        notification_thread_handle);
        if (ret) {
-               goto end;
+               goto end_unlock;
        }
 
        ret = cmd_rotate_session(session, NULL);
@@ -922,7 +922,7 @@ void *thread_rotation(void *data)
 
        ret = init_thread_state(handle, &thread);
        if (ret) {
-               goto end;
+               goto error;
        }
 
        /* Ready to handle client connections. */
This page took 0.025213 seconds and 4 git commands to generate.