From: Jérémie Galarneau Date: Wed, 25 May 2022 19:26:31 +0000 (-0400) Subject: sessiond: ust: remove unused `is_sent` attribute of ust_app_channel X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=84083c3c07b8c1f6320963c395d9c4a9012cdb44;p=lttng-tools.git sessiond: ust: remove unused `is_sent` attribute of ust_app_channel Signed-off-by: Jérémie Galarneau Change-Id: If97146367f62edf739d1228908c21346c2dae231 --- diff --git a/src/bin/lttng-sessiond/ust-app.cpp b/src/bin/lttng-sessiond/ust-app.cpp index 66d363c4b..b4192398b 100644 --- a/src/bin/lttng-sessiond/ust-app.cpp +++ b/src/bin/lttng-sessiond/ust-app.cpp @@ -1984,8 +1984,6 @@ static int send_channel_pid_to_ust(struct ust_app *app, cds_list_del(&stream->list); delete_ust_app_stream(-1, stream, app); } - /* Flag the channel that it is sent to the application. */ - ua_chan->is_sent = 1; error: health_code_update(); @@ -3352,7 +3350,6 @@ static int send_channel_uid_to_ust(struct buffer_reg_channel *buf_reg_chan, */ (void) release_ust_app_stream(-1, &stream, app); } - ua_chan->is_sent = 1; error_stream_unlock: pthread_mutex_unlock(&buf_reg_chan->stream_list_lock); diff --git a/src/bin/lttng-sessiond/ust-app.hpp b/src/bin/lttng-sessiond/ust-app.hpp index 7206666ba..48dc7b64e 100644 --- a/src/bin/lttng-sessiond/ust-app.hpp +++ b/src/bin/lttng-sessiond/ust-app.hpp @@ -144,8 +144,6 @@ struct ust_app_stream { struct ust_app_channel { int enabled; int handle; - /* Channel and streams were sent to the UST tracer. */ - int is_sent; /* * Unique key used to identify the channel on the consumer side. * 0 is a reserved 'invalid' value used to indicate that the consumer