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>
Mon, 18 Feb 2019 19:25:02 +0000 (14:25 -0500)
commit3e9d0dfe1d9bdb0ea305b9dc0cd66400c90a0dd8
tree72e36b6a7271f929842104e6dae64987cee4d4ad
parent2c119d32e27cec677594279a58c3f6da1e3b3339
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.027108 seconds and 5 git commands to generate.