Cleanup: src.ctf.lttng-live: move function declarations around
[babeltrace.git] / src / plugins / ctf / lttng-live / metadata.c
index 175b8071f0238098788d842b99ba3823e2a189b9..d1e3ae02a3b7ca7b1b0a58b06f50fd76ea62bc01 100644 (file)
@@ -350,7 +350,8 @@ int lttng_live_metadata_create_stream(struct lttng_live_session *session,
                        "Failed to create CTF metadata decoder");
                goto error;
        }
-       trace = lttng_live_borrow_trace(session, ctf_trace_id);
+       trace = lttng_live_session_borrow_or_create_trace_by_id(session,
+               ctf_trace_id);
        if (!trace) {
                BT_COMP_LOGE_APPEND_CAUSE(self_comp,
                        "Failed to borrow trace");
This page took 0.023678 seconds and 4 git commands to generate.