From: Philippe Proulx Date: Wed, 24 May 2017 07:23:26 +0000 (-0400) Subject: ctf.fs source: make traces static when all streams are created X-Git-Tag: v2.0.0-pre1~201 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=27d1a78bf21d3f54824b9df98ffdc50390252b1b ctf.fs source: make traces static when all streams are created Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- 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: