ret = utils_stream_file_path(stream->chan->pathname, stream->name,
stream->chan->tracefile_size,
- stream->chan->tracefile_count, NULL,
+ stream->tracefile_count_current, NULL,
stream_path, sizeof(stream_path));
if (ret < 0) {
goto end;
end:
return ret;
}
+
+bool consumer_stream_is_deleted(struct lttng_consumer_stream *stream)
+{
+ /*
+ * This function does not take a const stream since
+ * cds_lfht_is_node_deleted was not const before liburcu 0.12.
+ */
+ assert(stream);
+ return cds_lfht_is_node_deleted(&stream->node.node);
+}