Fix: relayd: session id is ignored by 2.11+ create session command
[lttng-tools.git] / src / bin / lttng-relayd / stream.cpp
index 346936d8488f1436186f4b5abf065bf86131d2d7..65a8ce11abf95a9c8b45a7077c06f5db94cd535a 100644 (file)
@@ -31,6 +31,8 @@
 /* Should be called with RCU read-side lock held. */
 bool stream_get(struct relay_stream *stream)
 {
+       ASSERT_RCU_READ_LOCKED();
+
        return urcu_ref_get_unless_zero(&stream->ref);
 }
 
@@ -71,7 +73,7 @@ static void stream_complete_rotation(struct relay_stream *stream)
        }
        lttng_trace_chunk_put(stream->trace_chunk);
        stream->trace_chunk = stream->ongoing_rotation.value.next_trace_chunk;
-       stream->ongoing_rotation = (typeof(stream->ongoing_rotation)) {};
+       stream->ongoing_rotation = LTTNG_OPTIONAL_INIT_UNSET;
        stream->completed_rotation_count++;
 }
 
This page took 0.025492 seconds and 4 git commands to generate.