From: Jérémie Galarneau Date: Mon, 20 Aug 2018 21:32:46 +0000 (-0400) Subject: Fix: consumers don't honor protocol on rotate pending relay command X-Git-Tag: v2.11.0-rc1~138 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=19990ed538f86bf0f32193a378c3faf36ce4f467;hp=19990ed538f86bf0f32193a378c3faf36ce4f467;p=lttng-tools.git Fix: consumers don't honor protocol on rotate pending relay command The payload of a command should not be sent to the sessiond if its execution failed. The sessiond reports an error as soon as the return code of the command is returned and will never consume the payload, resulting in a protocol error down the line. Moreover, the ust-consumer's implementation doesn't check for errors as it stores the return value of lttng_consumer_rotate_pending_relay() to an unsigned variable and checks for negative values. Signed-off-by: Jérémie Galarneau ---