X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer-stream.c;h=cdda9412ee8df2d97395a12abc3f2cdc52dd379d;hp=fe1178795d9cf6d4f0bc1a300041e74690fcb535;hb=cdb72e4e9298c5a5852c6995de7a58fe7fdeaaac;hpb=8e1ef46e89a86865736a62d2def88f70acb0be55 diff --git a/src/common/consumer/consumer-stream.c b/src/common/consumer/consumer-stream.c index fe1178795..cdda9412e 100644 --- a/src/common/consumer/consumer-stream.c +++ b/src/common/consumer/consumer-stream.c @@ -645,3 +645,13 @@ int consumer_stream_rotate_output_files(struct lttng_consumer_stream *stream) 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); +}