From: Jérémie Galarneau Date: Fri, 4 Sep 2015 01:43:26 +0000 (-0400) Subject: Fix: Announce empty streams on live attach X-Git-Tag: v2.7.0-rc2~83 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7475f716f7ae6ac942226e69dbf79f4f325602c2;p=lttng-tools.git Fix: Announce empty streams on live attach Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index bd6e12e5a..a1fbbbe56 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -307,24 +307,11 @@ int make_viewer_streams(struct relay_session *session, continue; } /* - * stream published is protected by the session - * lock. + * stream published is protected by the session lock. */ if (!stream->published) { goto next; } - /* - * Stream has no data, don't consider it yet. - */ - if (stream->is_metadata) { - if (!stream->metadata_received) { - goto next; - } - } else { - if (stream->prev_seq == -1ULL) { - goto next; - } - } vstream = viewer_stream_get_by_id(stream->stream_handle); if (!vstream) { vstream = viewer_stream_create(stream, seek_t);