Fix: relayd: failure to read index entry or stream packet after clear
[lttng-tools.git] / src / bin / lttng-relayd / viewer-stream.h
index 64e9e0abe1731019417949ccf4dc19c47e9e196a..e7d733b9e60ecb10479992b5e74042089e824cdb 100644 (file)
@@ -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;
This page took 0.024216 seconds and 4 git commands to generate.