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>
Thu, 19 Sep 2019 19:31:48 +0000 (15:31 -0400)
commitf40001f7dbb65d9add273317e1598df5da8906c5
tree5578359005d28a4671f8fbf4ddcce9768e98fb93
parent9eba0c6d165e5d5900a2987fc2adafc2822783f7
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.025883 seconds and 4 git commands to generate.