X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fconsumer.c;h=46ee31cc28bfc2b7026f03e9ceb4faa7c576c4e9;hb=07aa2e420d253caa8a1ac38c5619955acbd6e63f;hp=eeba2a2ab50eb5466b3b5b2aecd006eccbdfb7db;hpb=3b9677124ab48bddc945ca67947c49b87b5853e0;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/consumer.c b/src/bin/lttng-sessiond/consumer.c index eeba2a2ab..46ee31cc2 100644 --- a/src/bin/lttng-sessiond/consumer.c +++ b/src/bin/lttng-sessiond/consumer.c @@ -84,7 +84,6 @@ char *setup_channel_trace_path(struct consumer_output *consumer, goto error; } else if (ret >= LTTNG_PATH_MAX) { ERR("Truncation occurred while formatting channel path"); - ret = -1; goto error; } @@ -1152,9 +1151,10 @@ int consumer_send_relayd_socket(struct consumer_socket *consumer_sock, if (type == LTTNG_STREAM_CONTROL) { char output_path[LTTNG_PATH_MAX] = {}; + uint64_t relayd_session_id; ret = relayd_create_session(rsock, - &msg.u.relayd_sock.relayd_session_id, + &relayd_session_id, session_name, hostname, base_path, session_live_timer, consumer->snapshot, session_id, @@ -1167,6 +1167,7 @@ int consumer_send_relayd_socket(struct consumer_socket *consumer_sock, (void) relayd_close(rsock); goto error; } + msg.u.relayd_sock.relayd_session_id = relayd_session_id; DBG("Created session on relay, output path reply: %s", output_path); }