Fix: consumerd: NULL pointer dereference during metadata sync
[lttng-tools.git] / src / common / consumer / consumer-stream.c
index fe1178795d9cf6d4f0bc1a300041e74690fcb535..cdda9412ee8df2d97395a12abc3f2cdc52dd379d 100644 (file)
@@ -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);
+}
This page took 0.023307 seconds and 4 git commands to generate.