projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: if relayd is unreachable, disable consumer for the session
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-app.c
diff --git
a/src/bin/lttng-sessiond/ust-app.c
b/src/bin/lttng-sessiond/ust-app.c
index 1736a3e851b20b646aa0f0b95c8e65c3ddc67fd6..0f553a671603845a6bdd40b9819505963d27c45b 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-app.c
+++ b/
src/bin/lttng-sessiond/ust-app.c
@@
-1946,9
+1946,11
@@
static int do_consumer_create_channel(struct ltt_ust_session *usess,
* Now get the channel from the consumer. This call wil populate the stream
* list of that channel and set the ust objects.
*/
* Now get the channel from the consumer. This call wil populate the stream
* list of that channel and set the ust objects.
*/
- ret = ust_consumer_get_channel(socket, ua_chan);
- if (ret < 0) {
- goto error_destroy;
+ if (usess->consumer->enabled) {
+ ret = ust_consumer_get_channel(socket, ua_chan);
+ if (ret < 0) {
+ goto error_destroy;
+ }
}
rcu_read_unlock();
}
rcu_read_unlock();
This page took
0.023771 seconds
and
4
git commands to generate.