X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer.cpp;fp=src%2Fcommon%2Fconsumer%2Fconsumer.cpp;h=3272c129fe353c2ad6b75f3f359391ce55ced9bf;hp=8326a8e391d64d7506fcab19a981558955fcfd0b;hb=319dcddc7409961e156af76666fe70d31baec55a;hpb=139a8d250fb18f8ffc95b0936f7285f7b484b72f diff --git a/src/common/consumer/consumer.cpp b/src/common/consumer/consumer.cpp index 8326a8e39..3272c129f 100644 --- a/src/common/consumer/consumer.cpp +++ b/src/common/consumer/consumer.cpp @@ -383,6 +383,12 @@ void consumer_del_channel(struct lttng_consumer_channel *channel) consumer_timer_monitor_stop(channel); } + /* + * Send a last buffer statistics sample to the session daemon + * to ensure it tracks the amount of data consumed by this channel. + */ + sample_and_send_channel_buffer_stats(channel); + switch (the_consumer_data.type) { case LTTNG_CONSUMER_KERNEL: break;