Fix: use stream's current tracefile count rather than the max
[lttng-tools.git] / src / common / consumer / consumer-stream.c
index 32441ea2cd313327cfacf22ab47772f6fea1d39f..fe1178795d9cf6d4f0bc1a300041e74690fcb535 100644 (file)
@@ -576,7 +576,7 @@ int consumer_stream_create_output_files(struct lttng_consumer_stream *stream,
 
        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;
This page took 0.023658 seconds and 4 git commands to generate.