Fix: consumerd: NULL pointer dereference during metadata sync
[lttng-tools.git] / src / common / consumer / consumer-stream.h
index 44a5b0fc1efa42505c03af8054b12212c86687e6..5f3a34e3ee26063b4305c41a7f1086c033ecaf05 100644 (file)
@@ -94,4 +94,13 @@ int consumer_stream_create_output_files(struct lttng_consumer_stream *stream,
  */
 int consumer_stream_rotate_output_files(struct lttng_consumer_stream *stream);
 
+/*
+ * Indicates whether or not a stream is logically deleted. A deleted stream
+ * should no longer be used; its existence is only garanteed by the RCU lock
+ * held by the caller.
+ *
+ * This function must be called with the RCU read side lock held.
+ */
+bool consumer_stream_is_deleted(struct lttng_consumer_stream *stream);
+
 #endif /* LTTNG_CONSUMER_STREAM_H */
This page took 0.025091 seconds and 5 git commands to generate.