From a1de4b78dcb72511fb8e6f2a3da80a771722d83c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 19 Nov 2019 13:41:51 -0500 Subject: [PATCH] Fix: relayd: remove assert of non-null stream trace chunk on rotate MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bin/lttng-relayd/stream.c | 1 - 1 file changed, 1 deletion(-) 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, -- 2.34.1