X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fust-consumer%2Fust-consumer.c;h=bdabb5e49fcda0e44d6c65018efc0b4f296c6730;hp=af3aca0a5dfad074ba163a875770244af13e475b;hb=601262d65a9ccd90198558639ef2a73cda4230e1;hpb=2c1142ac6794479345e8f1c5d50ba1f306bb40cd diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index af3aca0a5..bdabb5e49 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -438,17 +438,6 @@ static int send_sessiond_channel(int sock, net_seq_idx = stream->net_seq_idx; } } - ret = consumer_send_relayd_streams_sent(net_seq_idx); - if (ret < 0) { - /* - * Flag that the relayd was the problem here probably due to a - * communicaton error on the socket. - */ - if (relayd_error) { - *relayd_error = 1; - } - ret_code = LTTNG_ERR_RELAYD_CONNECT_FAIL; - } } /* Inform sessiond that we are about to send channel and streams. */ @@ -769,6 +758,12 @@ static int setup_metadata(struct lttng_consumer_local_data *ctx, uint64_t key) ret = LTTCOMM_CONSUMERD_ERROR_METADATA; goto error; } + ret = consumer_send_relayd_streams_sent( + metadata->metadata_stream->net_seq_idx); + if (ret < 0) { + ret = LTTCOMM_CONSUMERD_RELAYD_FAIL; + goto error; + } } ret = send_streams_to_thread(metadata, ctx);