From: Jérémie Galarneau Date: Thu, 8 Nov 2018 17:09:04 +0000 (-0500) Subject: Remove unused nr_stream_rotate_pending from consumer channel X-Git-Tag: v2.12.0-rc1~775 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2c8a890846cfc88874b25d5c3c12e0fd5ce3d1da;p=lttng-tools.git Remove unused nr_stream_rotate_pending from consumer channel Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c index 6de72e275..b07939113 100644 --- a/src/common/consumer/consumer.c +++ b/src/common/consumer/consumer.c @@ -3984,7 +3984,6 @@ int lttng_consumer_rotate_channel(uint64_t key, const char *path, if (consumed_pos == stream->rotate_position) { stream->rotate_ready = true; } - channel->nr_stream_rotate_pending++; ret = consumer_flush_buffer(stream, 1); if (ret < 0) { diff --git a/src/common/consumer/consumer.h b/src/common/consumer/consumer.h index d4e9f066a..2c927bbc2 100644 --- a/src/common/consumer/consumer.h +++ b/src/common/consumer/consumer.h @@ -233,13 +233,6 @@ struct lttng_consumer_channel { bool streams_sent_to_relayd; - /* - * Account how many streams are waiting for their rotation to be - * complete. When this number reaches 0, we inform the session - * daemon that this channel has finished its rotation. - */ - uint64_t nr_stream_rotate_pending; - /* * The chunk id where we currently write the data. This value is sent * to the relay when we add a stream and when a stream rotates. This