relayd: open live viewer files from the current stream's trace chunk
[lttng-tools.git] / src / bin / lttng-relayd / viewer-stream.h
index 5dc135dc6c4972eb104aec630ca088cbd8ed62fc..7c42dfad39a7444038400101b88334aae622237a 100644 (file)
@@ -45,15 +45,17 @@ struct relay_stream;
  */
 struct relay_viewer_stream {
        struct urcu_ref ref;
-       pthread_mutex_t reflock;
 
        /* Back ref to stream. */
        struct relay_stream *stream;
 
-       /* FD from which to read the stream data. */
-       struct stream_fd *stream_fd;
-       /* FD from which to read the index data. */
-       struct stream_fd *index_fd;
+       struct {
+               /* FD from which to read the stream data. */
+               struct stream_fd *fd;
+               struct lttng_trace_chunk *trace_chunk;
+       } stream_file;
+       /* index file from which to read the index data. */
+       struct lttng_index_file *index_file;
 
        char *path_name;
        char *channel_name;
This page took 0.023397 seconds and 4 git commands to generate.