Fix: lttng_directory_handle_init fails on opening base relayd output
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 4 Sep 2019 22:30:00 +0000 (18:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2019 23:39:24 +0000 (19:39 -0400)
commit335875f6066429a7ce5f0a5a96f1c75a268fef7a
tree12fbc6f16c3ebc96733c84216058df2946ec26ff
parent9221ac46a2e4bb7a68fb9e5b12d5d06e1663967e
Fix: lttng_directory_handle_init fails on opening base relayd output

lttng_directory_handle_init, called from session_set_anonymous_chunk,
fails to open "$LTTNG_HOME/lttng-traces" directory as the folder is
not yet created at this time.

Rename init_session_output_directory_handle to
session_init_output_directory_handle and move it to session.h

For an anonymous chunk, the session->output_path is empty.  The
resulting output directory handle is at the "root" node of the
lttng-relayd chosen output.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c
src/bin/lttng-relayd/session.c
src/bin/lttng-relayd/session.h
This page took 0.042988 seconds and 4 git commands to generate.