consumer_stream_create_output_files() formats the file name of a
stream's data file by passing the tracefile count setting rather than
using `tracefile_count_current`, the current "index" within the
on-disk ring buffer. This broke the trace file rotation functionality
as the same file would be overwritten continuously.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
ret = utils_stream_file_path(stream->chan->pathname, stream->name,
stream->chan->tracefile_size,
- stream->chan->tracefile_count, NULL,
+ stream->tracefile_count_current, NULL,
stream_path, sizeof(stream_path));
if (ret < 0) {
goto end;