[lttng-dev] [PATCH lttng-tools 2/3] Fix: relay: viewer_get_next_index handle null vstream

Jérémie Galarneau jeremie.galarneau at efficios.com
Sat Sep 5 12:13:53 EDT 2015


Merged, thanks!

Jérémie

On Thu, Sep 3, 2015 at 5:17 PM, Mathieu Desnoyers
<mathieu.desnoyers at efficios.com> wrote:
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> ---
>  src/bin/lttng-relayd/live.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c
> index 2d0b687..eb57421 100644
> --- a/src/bin/lttng-relayd/live.c
> +++ b/src/bin/lttng-relayd/live.c
> @@ -1454,9 +1454,11 @@ send_reply:
>         }
>         health_code_update();
>
> -       DBG("Index %" PRIu64 " for stream %" PRIu64 " sent",
> -                       vstream->last_sent_index,
> -                       vstream->stream->stream_handle);
> +       if (vstream) {
> +               DBG("Index %" PRIu64 " for stream %" PRIu64 " sent",
> +                               vstream->last_sent_index,
> +                               vstream->stream->stream_handle);
> +       }
>  end:
>         if (metadata_viewer_stream) {
>                 viewer_stream_put(metadata_viewer_stream);
> --
> 2.1.4
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list