From: Jérémie Galarneau Date: Sat, 23 Nov 2019 00:04:16 +0000 (-0500) Subject: Fix: relayd: fully initialize viewer stream before publishing it X-Git-Tag: v2.12.0-rc1~229 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c51b2177a083e94884c11cb3c2a6bbfe9dc463f7;p=lttng-tools.git Fix: relayd: fully initialize viewer stream before publishing it Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/viewer-stream.c b/src/bin/lttng-relayd/viewer-stream.c index 8e3a19492..acd488b61 100644 --- a/src/bin/lttng-relayd/viewer-stream.c +++ b/src/bin/lttng-relayd/viewer-stream.c @@ -160,9 +160,8 @@ struct relay_viewer_stream *viewer_stream_create(struct relay_stream *stream, /* Globally visible after the add unique. */ lttng_ht_node_init_u64(&vstream->stream_n, stream->stream_handle); - lttng_ht_add_unique_u64(viewer_streams_ht, &vstream->stream_n); - urcu_ref_init(&vstream->ref); + lttng_ht_add_unique_u64(viewer_streams_ht, &vstream->stream_n); return vstream;