From 27d1a78bf21d3f54824b9df98ffdc50390252b1b Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Wed, 24 May 2017 03:23:26 -0400 Subject: [PATCH] ctf.fs source: make traces static when all streams are created MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- plugins/ctf/fs-src/fs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/ctf/fs-src/fs.c b/plugins/ctf/fs-src/fs.c index 965f5963..72e4d49d 100644 --- a/plugins/ctf/fs-src/fs.c +++ b/plugins/ctf/fs-src/fs.c @@ -930,6 +930,13 @@ struct ctf_fs_trace *ctf_fs_trace_create(struct ctf_fs_component *ctf_fs, goto error; } + /* + * create_ds_file_groups() created all the streams that this + * trace needs. There won't be any more. Therefore it is safe to + * make this trace static. + */ + (void) bt_ctf_trace_set_is_static(ctf_fs_trace->metadata->trace); + goto end; error: -- 2.34.1