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)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 11 Nov 2019 17:19:00 +0000 (12:19 -0500)
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>

No differences found
This page took 0.029116 seconds and 4 git commands to generate.