X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flttng-relayd.h;h=f22b115c9d037e78c0737b10f2f7861e9efeb21e;hb=6565421fd1e3307cda0f3cb0f849cb990122edc7;hp=0af8e0f1d963199b5a6bb82c28b244a33daa6b6c;hpb=cef0f7d51b8025d3ba04e6496242c1cca1641aa6;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/lttng-relayd.h b/src/bin/lttng-relayd/lttng-relayd.h index 0af8e0f1d..f22b115c9 100644 --- a/src/bin/lttng-relayd/lttng-relayd.h +++ b/src/bin/lttng-relayd/lttng-relayd.h @@ -163,12 +163,16 @@ struct relay_viewer_stream { 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; /* * This lock blocks only when the writer is about to start overwriting * a file currently read by the reader. + * + * This is nested INSIDE the viewer_stream_rotation_lock. */ pthread_mutex_t overwrite_lock; /* Information telling us if the stream is a metadata stream. */