X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flive.c;h=93d458b1f0f24e813f68b7f1ac312fa6ffdc335c;hp=5684608eacc6b72a86550dd0c70e007381922b12;hb=72f11bd7fc4530cd73cd26ee4aa1196d2b2774bd;hpb=8bdee6e2bac74a577147046126628ff3b1b34930 diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index 5684608ea..93d458b1f 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -17,6 +17,7 @@ */ #define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -803,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; } @@ -1322,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