src.ctf.lttng-live: make `lttng_live_get_one_metadata_packet()` return status
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 28 Oct 2019 18:49:08 +0000 (14:49 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 31 Oct 2019 18:43:32 +0000 (14:43 -0400)
commitc28512ab93b16501a8b0da494f0a03e5f0f22662
tree23f8c0933e67c8bfd0f20ca7f69dbfd042c4f13d
parent156184d68ce8a9338e042908c522255e3eed800d
src.ctf.lttng-live: make `lttng_live_get_one_metadata_packet()` return status

This is needed to differentiate real critical errors from relay daemon
from errors which are handled.

The relay daemon can return the LTTNG_VIEWER_METADATA_ERR status to
convey that the requested metadata stream is not found of the relay.
This can happen during normal operations if the associated trace is no
longer active. Short lived UST apps in per-pid session may produce such
scenario. In these cases, simply remove the live trace from the session
and go on with the iteration.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I452e63bd12a3c58d518726e3d178be241464bc2a
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2277
src/plugins/ctf/lttng-live/lttng-live.c
src/plugins/ctf/lttng-live/lttng-live.h
src/plugins/ctf/lttng-live/metadata.c
src/plugins/ctf/lttng-live/viewer-connection.c
This page took 0.02446 seconds and 4 git commands to generate.