From: Mathieu Desnoyers Date: Wed, 14 Nov 2018 21:11:48 +0000 (-0500) Subject: Fix: consumer: rotation error return codes X-Git-Tag: v2.12.0-rc1~760 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=92b7a7f81a94f7616c155aed8a213edd68937a57;hp=92b7a7f81a94f7616c155aed8a213edd68937a57 Fix: consumer: rotation error return codes The return codes of rotation commands from consumerd are not in sync with reality. Some are simply copy-pasted from old code. Add new return codes to describe each error situation, and split the "channel lookup" error from other errors so sessiond can distinguish between an error caused by an exiting application (per-pid buffers) (LTTCOMM_CONSUMERD_CHAN_NOT_FOUND) and an actual error while performing the command. Move the channel lookup into the rotation caller, because it is used by two sub-functions: we don't want to lookup to succeed for the first and then fail for the second. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---