uint64_t len_left;
uint64_t read_len;
+ BT_ASSERT(request_sz);
+
if (stream->has_stream_hung_up) {
status = CTF_MSG_ITER_MEDIUM_STATUS_EOF;
goto end;
stream_iter->log_level = log_level;
stream_iter->self_comp = self_comp;
- 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 CTF trace.");