projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
relayd: create an implicit trace chunk on session creation
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
main.c
diff --git
a/src/bin/lttng-relayd/main.c
b/src/bin/lttng-relayd/main.c
index c7760cca45b67feaac6f7e50b0edb03d7d74e72d..282bb8461b1f97a595958cd75504fdf86fb3b322 100644
(file)
--- a/
src/bin/lttng-relayd/main.c
+++ b/
src/bin/lttng-relayd/main.c
@@
-1144,6
+1144,15
@@
static int relay_create_session(const struct lttcomm_relayd_hdr *recv_hdr,
reply.session_id = htobe64(session->id);
reply.session_id = htobe64(session->id);
+ session->current_trace_chunk =
+ sessiond_trace_chunk_registry_get_anonymous_chunk(
+ sessiond_trace_chunk_registry, sessiond_uuid,
+ session->id,
+ opt_output_path);
+ if (!session->current_trace_chunk) {
+ ret = -1;
+ }
+
send_reply:
if (ret < 0) {
reply.ret_code = htobe32(LTTNG_ERR_FATAL);
send_reply:
if (ret < 0) {
reply.ret_code = htobe32(LTTNG_ERR_FATAL);
This page took
0.023653 seconds
and
4
git commands to generate.