X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Findex.h;fp=src%2Fbin%2Flttng-relayd%2Findex.h;h=80fe86ab024f8e668e51a1553d52385e1c666ad2;hp=15c4ac8cd8201b906e458a4e819416004a9a1d1e;hb=f8f3885cc52af9d3c951da78989d6f4a25270411;hpb=de7e372efecc2cf51921f2ac5a657337e04a39d3 diff --git a/src/bin/lttng-relayd/index.h b/src/bin/lttng-relayd/index.h index 15c4ac8cd..80fe86ab0 100644 --- a/src/bin/lttng-relayd/index.h +++ b/src/bin/lttng-relayd/index.h @@ -40,10 +40,10 @@ struct relay_index { pthread_mutex_t lock; /* - * FD on which to write the index data. May differ from - * stream->index_fd due to tracefile rotation. + * index file on which to write the index data. May differ from + * stream->index_file due to tracefile rotation. */ - struct stream_fd *index_fd; + struct lttng_index_file *index_file; /* Index packet data. This is the data that is written on disk. */ struct ctf_packet_index index_data; @@ -64,8 +64,9 @@ struct relay_index { struct relay_index *relay_index_get_by_id_or_create(struct relay_stream *stream, uint64_t net_seq_num); void relay_index_put(struct relay_index *index); -int relay_index_set_fd(struct relay_index *index, struct stream_fd *index_fd, - uint64_t data_offset); +int relay_index_set_file(struct relay_index *index, + struct lttng_index_file *index_file, + uint64_t data_offset); int relay_index_set_data(struct relay_index *index, const struct ctf_packet_index *data); int relay_index_try_flush(struct relay_index *index);