- uint64_t stream_handle;
- uint64_t session_id;
- int read_fd;
- int index_read_fd;
- char *path_name;
- char *channel_name;
- uint64_t last_sent_index;
- uint64_t total_index_received;
- uint64_t tracefile_count;
- uint64_t tracefile_count_current;
- /* Stop after reading this tracefile. */
- uint64_t tracefile_count_last;
- struct lttng_ht_node_u64 stream_n;
- struct rcu_head rcu_node;
- struct ctf_trace *ctf_trace;
+ struct urcu_ref ref;
+
+ /* Back ref to stream. */
+ struct relay_stream *stream;
+
+ struct {
+ struct fs_handle *handle;
+ struct lttng_trace_chunk *trace_chunk;
+ } stream_file;
+ /* index file from which to read the index data. */
+ struct lttng_index_file *index_file;