Fix: Live tracing does not honor live timer after first tracefile with tracefile...
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index 78974af4c545f417e748efc9dc265b2ec197522d..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");
@@ -2622,6 +2621,7 @@ restart:
 
                                if (revents & LPOLLIN) {
                                        if (conn->type != RELAY_DATA) {
+                                               rcu_read_unlock();
                                                continue;
                                        }
 
This page took 0.027617 seconds and 5 git commands to generate.