Refactor consumerd main/cleanup
[lttng-tools.git] / src / bin / lttng-relayd / live.c
index 2940b2c6131bd63792fd34fe43badcdef3f359a7..93d458b1f0f24e813f68b7f1ac312fa6ffdc335c 100644 (file)
@@ -804,14 +804,9 @@ int viewer_list_sessions(struct relay_connection *conn)
        }
        health_code_update();
 
-       rcu_read_unlock();
        ret = 0;
-       goto end;
-
 end_unlock:
        rcu_read_unlock();
-
-end:
        return ret;
 }
 
@@ -1323,7 +1318,7 @@ int viewer_get_next_index(struct relay_connection *conn)
        ret = check_index_status(vstream, rstream, ctf_trace, &viewer_index);
        pthread_mutex_unlock(&rstream->viewer_stream_rotation_lock);
        if (ret < 0) {
-               goto end;
+               goto end_unlock;
        } else if (ret == 1) {
                /*
                 * This means the viewer index data structure has been populated by the
This page took 0.023885 seconds and 4 git commands to generate.