Fix end condition on rotate with live reading
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index 70a1948c328cc690e39e4add4d67f4a2a8f2fe44..b8e2f72e6706bc194be2d095ddca89f65abb0dca 100644 (file)
@@ -851,6 +851,7 @@ static void destroy_stream(struct relay_stream *stream)
                 */
                pthread_mutex_lock(&stream->viewer_stream_rotation_lock);
                vstream->total_index_received = stream->total_index_received;
+               vstream->tracefile_count_last = stream->tracefile_count_current;
                vstream->close_write_flag = 1;
                pthread_mutex_unlock(&stream->viewer_stream_rotation_lock);
        }
This page took 0.024826 seconds and 5 git commands to generate.