From: Jonathan Rajotte Date: Wed, 4 Sep 2019 22:29:59 +0000 (-0400) Subject: Fix: init_session_output_path is valid for peer >= 2.11 only X-Git-Tag: v2.11.0-rc3~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9221ac46a2e4bb7a68fb9e5b12d5d06e1663967e;p=lttng-tools.git Fix: init_session_output_path is valid for peer >= 2.11 only Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/session.c b/src/bin/lttng-relayd/session.c index 31f27184f..f65450f01 100644 --- a/src/bin/lttng-relayd/session.c +++ b/src/bin/lttng-relayd/session.c @@ -271,10 +271,14 @@ struct relay_session *session_create(const char *session_name, LTTNG_OPTIONAL_SET(&session->id_sessiond, *id_sessiond); } - ret = init_session_output_path(session); - if (ret) { - goto error; + if (major == 2 && minor >= 11) { + /* Only applies for 2.11+ peers using trace chunks. */ + ret = init_session_output_path(session); + if (ret) { + goto error; + } } + ret = sessiond_trace_chunk_registry_session_created( sessiond_trace_chunk_registry, sessiond_uuid); if (ret) {