Fix: use the trace chunk to truncate streams on late rotation
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Sep 2019 14:27:22 +0000 (10:27 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Sep 2019 16:15:44 +0000 (12:15 -0400)
commitf2aea36dd732363bb58b2613b3680ad7a3bec856
treeb9688b2eebc409ea937e54d3566ff3be5c370c56
parent6e7e504882cc5ca7549459d1ecafa69d3242d2d5
Fix: use the trace chunk to truncate streams on late rotation

A stream's rotation can occur after the reception of data that should
be part of the "next" trace chunk. In those cases, the current stream
file and the next one (belonging to the new trace chunk) need to be
opened. The misplaced data is copied between both files and the
now-old file is closed.

This code was not transitioned to use the trace chunk interface and is
the last user of raw stream file FDs. This patch transitions the
function (rewrites it, really) to use the trace chunk interface.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/stream.c
This page took 0.025983 seconds and 5 git commands to generate.