X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fviewer-stream.h;h=2514b172214ac02d6929042180cc15b7215e94b9;hp=cc46db4e2a3545cb283ddb5c3260001bcf82d320;hb=f8f3885cc52af9d3c951da78989d6f4a25270411;hpb=7591bab11eceedc6a0d1e02fd6f85592267a63b5 diff --git a/src/bin/lttng-relayd/viewer-stream.h b/src/bin/lttng-relayd/viewer-stream.h index cc46db4e2..2514b1722 100644 --- a/src/bin/lttng-relayd/viewer-stream.h +++ b/src/bin/lttng-relayd/viewer-stream.h @@ -52,17 +52,22 @@ struct relay_viewer_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; + /* index file from which to read the index data. */ + struct lttng_index_file *index_file; char *path_name; char *channel_name; uint64_t current_tracefile_id; - /* Free-running counter. */ - uint64_t current_tracefile_seq; - uint64_t last_sent_index; + /* + * Counts the number of sent indexes. The "tag" associated + * with an index to send is the current index_received_seqcount, + * because we increment index_received_seqcount after sending + * each index. This index_received_seqcount counter can also be + * updated when catching up with the producer. + */ + uint64_t index_sent_seqcount; /* Indicates if this stream has been sent to a viewer client. */ bool sent_flag;