ctf.fs source: make traces static when all streams are created
[babeltrace.git] / 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.023881 seconds and 4 git commands to generate.