ctf.fs source: make traces static when all streams are created
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 24 May 2017 07:23:26 +0000 (03:23 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:44 +0000 (12:57 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/fs-src/fs.c

index 965f5963e6f8f1ed15a0619be9bc8d508400a9dc..72e4d49d26ffa639174ff52c1ca90bcacb77a199 100644 (file)
@@ -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:
This page took 0.024716 seconds and 4 git commands to generate.