Fix: Live tracing does not honor live timer after first tracefile with tracefile...
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Nov 2014 17:31:39 +0000 (18:31 +0100)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 23 Nov 2014 17:00:22 +0000 (12:00 -0500)
When we pass to the 2nd sub-file (or following sub-files) of a stream in
relayd, the live timer has no visible effect from a live reader
perspective, and then everything is flushed when we reach the following
sub-file.

This is caused by the reset of stream->total_index_received after each
tracefile rotation. It should keep on incrementing to match what is
expected by check in check_index_status():

  (rstream->total_index_received <= vstream->last_sent_index)

Fixes #863

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c

index f7c24b896ee24e54db183928992b9c4f88d494a1..27a428a273734a8e558e99132e04902ea1de4b32 100644 (file)
@@ -2338,7 +2338,6 @@ int relay_process_data(struct relay_connection *conn)
                                stream->tracefile_size, stream->tracefile_count,
                                relayd_uid, relayd_gid, stream->fd,
                                &(stream->tracefile_count_current), &stream->fd);
-               stream->total_index_received = 0;
                pthread_mutex_unlock(&stream->viewer_stream_rotation_lock);
                if (ret < 0) {
                        ERR("Rotating stream output file");
This page took 0.026775 seconds and 4 git commands to generate.