The live component checks that the path of a stream contains a
session's name. While this check works when interacting with pre-2.11
peers, there is no reason for a session's name to necessarily be in a
stream's path.
The LTTng relay daemon, as of 2.11, now expresses its path relative to
a session's output path, the session's name no longer appears in a
stream's path.
There are no comments explaining the reason for this check and it is
not present in babeltrace 1.5.x. Hence, it appears safe to remove it.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ic5499976ed45f1f4ae17056b9e881a8455898a44
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1845
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
{
struct lttng_live_metadata *metadata = NULL;
struct lttng_live_trace *trace;
- const char *match;
struct ctf_metadata_decoder_config cfg = {
.log_level = session->log_level,
.self_comp = session->self_comp,
metadata->self_comp = session->self_comp;
metadata->stream_id = stream_id;
- match = strstr(trace_name, session->session_name->str);
- if (!match) {
- goto error;
- }
-
metadata->decoder = ctf_metadata_decoder_create(&cfg);
if (!metadata->decoder) {
goto error;