X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fmain.c;h=282bb8461b1f97a595958cd75504fdf86fb3b322;hp=c7760cca45b67feaac6f7e50b0edb03d7d74e72d;hb=639ddf685b134bb075b92819f647f9f3c462df54;hpb=23c8ff5013f1e8c132cab7845ca608dbed4fca7f diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index c7760cca4..282bb8461 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1144,6 +1144,15 @@ static int relay_create_session(const struct lttcomm_relayd_hdr *recv_hdr, reply.session_id = htobe64(session->id); + session->current_trace_chunk = + sessiond_trace_chunk_registry_get_anonymous_chunk( + sessiond_trace_chunk_registry, sessiond_uuid, + session->id, + opt_output_path); + if (!session->current_trace_chunk) { + ret = -1; + } + send_reply: if (ret < 0) { reply.ret_code = htobe32(LTTNG_ERR_FATAL);