Consumer: Implement lttng_consumer_clear_channel
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 8 Feb 2019 22:05:10 +0000 (17:05 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 10 Apr 2019 20:20:10 +0000 (16:20 -0400)
commita9c7eac7b27c5f0bc7895fd77f6f11ee5d5e8751
tree552253f821bfbec521783c2502f675dd602186b4
parent087b053bd0306f442a45c5e88f3fc2148f08b62a
Consumer: Implement lttng_consumer_clear_channel

This function is responsible for performing all actions needed to
clear a given channel.

It only supports clear operation on unmonitored channel
(snapshot mode) for now.

To do so, flush and clear all the channel streams.

We use an active flush (consumer_flush_buffer(..., 1)) since we consider
the producer active at all time. No reason so far to check for the
quiescent state of the channel. This might need to be revisited.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/common/consumer/consumer.c
src/common/consumer/consumer.h
This page took 0.0261 seconds and 5 git commands to generate.