Fix: relayd: remove assert of non-null stream trace chunk on rotate
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 19 Nov 2019 18:41:51 +0000 (13:41 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 22 Nov 2019 21:22:14 +0000 (16:22 -0500)
A stream can rotate from a "NULL" trace chunk to a new trace chunk
and the relay daemon should not assert on this condition.

This happens when a session is stopped, rotated, and started again
later on.

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

index 35ed262d64c737db048809427bb3a2d3328d27c9..4c97a609e98323927532e92ee54402dbc7319cb1 100644 (file)
@@ -90,7 +90,6 @@ static int stream_create_data_output_file_from_trace_chunk(
        const mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP;
 
        ASSERT_LOCKED(stream->lock);
-       assert(stream->trace_chunk);
 
        ret = utils_stream_file_path(stream->path_name, stream->channel_name,
                        stream->tracefile_size, stream->tracefile_current_index,
This page took 0.026047 seconds and 4 git commands to generate.