X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fviewer-stream.h;h=e7d733b9e60ecb10479992b5e74042089e824cdb;hb=eca8e6d95d58cd45f9c16a79ee34c3a949d7ab5c;hp=64e9e0abe1731019417949ccf4dc19c47e9e196a;hpb=12c5f50afddfc4f620542860ac4a402b1884a022;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/viewer-stream.h b/src/bin/lttng-relayd/viewer-stream.h index 64e9e0abe..e7d733b9e 100644 --- a/src/bin/lttng-relayd/viewer-stream.h +++ b/src/bin/lttng-relayd/viewer-stream.h @@ -45,6 +45,14 @@ struct relay_viewer_stream { } stream_file; /* index file from which to read the index data. */ struct lttng_index_file *index_file; + /* + * Last seen rotation count in stream. + * + * Sampled on every change to the viewer stream trace chunk, + * this allows the live server to determine if it saw the latest + * rotation that occurred on the receiving end. + */ + uint64_t last_seen_rotation_count; char *path_name; char *channel_name;