From: Jérémie Galarneau Date: Tue, 19 Nov 2019 18:41:51 +0000 (-0500) Subject: Fix: relayd: remove assert of non-null stream trace chunk on rotate X-Git-Tag: v2.11.1~37 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=568f813fce0b488b33860c883726cadd5ac4f32e;p=lttng-tools.git Fix: relayd: remove assert of non-null stream trace chunk on rotate 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 --- diff --git a/src/bin/lttng-relayd/stream.c b/src/bin/lttng-relayd/stream.c index 35ed262d6..4c97a609e 100644 --- a/src/bin/lttng-relayd/stream.c +++ b/src/bin/lttng-relayd/stream.c @@ -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,