lib: append error in simple_sink_consume only if error status
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 8 Nov 2019 19:03:56 +0000 (14:03 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 14 Nov 2019 22:49:46 +0000 (17:49 -0500)
commiteb657c7b490f1f318d6c0c2b406baef935bbf97e
tree1e714d06071c62b9046ccbbed2abafbeb46b12e2
parentc7d8bfa1d847ff9e603d61480e5bbd7c6f20e696
lib: append error in simple_sink_consume only if error status

If the consume_func returns _AGAIN, we will append an error cause.  That
is wrong because _AGAIN is not an error cause.  Check for negative
status values instead of just != OK.

Change-Id: Ibc03a1e9eb25de5ec39af5148c8e235498c57b64
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2358
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/lib/graph/component-class-sink-simple.c
This page took 0.024776 seconds and 4 git commands to generate.