From: Francis Deslauriers Date: Tue, 12 Nov 2019 22:55:25 +0000 (-0500) Subject: Fix: relayd: don't send streams if there is no metadata X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=123ed7c220e544fb81eb3561d885c296665fef39;hp=123ed7c220e544fb81eb3561d885c296665fef39 Fix: relayd: don't send streams if there is no metadata Issue ===== When tracing short-live UST apps in per-pid mode, it happens that traces are closed before we can send all the streams to the viewer. This can place the viewer in an uncomfortable position where it is aware of data streams of a trace but can't get the metadata stream to decode the events. Solution ======== Only send the data streams if we have the metadata stream or if the metadata stream was already sent. This ensures that the viewer will either have all the {data,metadata} streams or none of them. Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau ---