graph: Fix: bt_graph_configure() does not propagate errors
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 1 Apr 2019 13:58:02 +0000 (09:58 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
commit53719615484ef873c6816662546c26be00db5f01
tree8eb1f46c01f69e4bfde7f9b5a360e21fdf71da50
parent39588a2063889cdb1a0233dff9afdf67a851c90a
graph: Fix: bt_graph_configure() does not propagate errors

Issue
=====
When configuring the graph, message iterator initialize functions may fail
and return an error status (e.g. _STATUS_NOMEM and _STATUS_ERROR). Those
error status are not propagated back to the caller of
`bt_graph_configure()` function. The caller that will consider the graph
to be configured properly and run it will it assertions down the road.

Solution
========
Return `BT_GRAPH_STATUS_ERROR` if any of the sinks returned a non-OK
status from its `graph_is_configured()` function.

Known drawbacks
===============
None.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
include/babeltrace/graph/graph-internal.h
This page took 0.025471 seconds and 4 git commands to generate.