From: Jonathan Rajotte Date: Fri, 25 Oct 2019 22:12:00 +0000 (-0400) Subject: Fix: move set base_path of session to URI configuration X-Git-Tag: v2.12.0-rc1~261 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=e3876bf0e1d1be72170b53e9fcb39f3108f069dc;hp=e3876bf0e1d1be72170b53e9fcb39f3108f069dc;p=lttng-tools.git Fix: move set base_path of session to URI configuration The load code still uses the "old" API to create and configure network session output (lttng_create_session followed by lttng_set_consumer_url). The session base_path is only set in the cmd_create_session_from_descriptor function. This results in invalid network output paths when using a loaded session configuration (xml). While we might want to move the load code to the new API, there is a case to be made in not breaking the previous API behaviour. To restore the expected behaviour of lttng_set_consumer_url, move the assignation of the session base_path to the cmd_set_consumer_uri function (LTTNG_SET_CONSUMER_URI). Both the previous and session descriptor based creation API uses this code path when needed (network output). Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau ---