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)
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>

No differences found
This page took 0.026085 seconds and 5 git commands to generate.