Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
* Stream is most probably being cleaned up by the data thread thus
* simply continue to the next one.
*/
* Stream is most probably being cleaned up by the data thread thus
* simply continue to the next one.
*/
- /*
- * If any of the streams in the list doesn't have a ctf_trace assigned,
- * it means that we never received the metadata stream, so we have to
- * wait until it arrives to make the streams available to the viewer.
- */
- if (!stream->ctf_trace) {
- goto end;
- }
-
stream->viewer_ready = 1;
rcu_read_unlock();
stream->viewer_ready = 1;
rcu_read_unlock();
* stream message is received, this list is emptied and streams are set
* with the viewer ready flag.
*/
* stream message is received, this list is emptied and streams are set
* with the viewer ready flag.
*/
- queue_stream_handle(stream->stream_handle, cmd);
+ if (stream->metadata_flag) {
+ stream->viewer_ready = 1;
+ } else {
+ queue_stream_handle(stream->stream_handle, cmd);
+ }
lttng_ht_node_init_ulong(&stream->stream_n,
(unsigned long) stream->stream_handle);
lttng_ht_node_init_ulong(&stream->stream_n,
(unsigned long) stream->stream_handle);