Move stream name creation to fct create_ust_stream
authorDavid Goulet <dgoulet@efficios.com>
Mon, 21 Jan 2013 17:03:55 +0000 (12:03 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 21 Jan 2013 17:03:55 +0000 (12:03 -0500)
commit7f13370536e1ad64db733423b542755c97160f4d
tree1ada446f75cfa81fe407c98f64e4b7dbbfef7328
parent495bbffb336c5150def4e6fe52c0a5f2f0195a2b
Move stream name creation to fct create_ust_stream

This is for two reasons. First, to avoid for the caller to create the
stream name. Second, on snprintf() error, we can't continue so put back
the reserved FDs and return an error.

We do that name creation now *before* the stream is created on the
application side so we don't have to release that object on error.

Only after that the stream is added to the list and the channel count
updated. This makes more sense and better handle the error path. Also,
this patch removes a XXX: statement which are always not cool on
production software :).

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/ust-app.c
This page took 0.024973 seconds and 4 git commands to generate.