Fix: if relayd is unreachable, disable consumer for the session
[lttng-tools.git] / src / bin / lttng-sessiond / ust-consumer.c
index ca96ff727bbd6705b84cc6f88c2e3826929bda9f..367e92cd32368b2b4b522834bad22010c1668cf7 100644 (file)
@@ -203,6 +203,12 @@ int ust_consumer_ask_channel(struct ust_app_session *ua_sess,
        assert(socket->fd >= 0);
        assert(registry);
 
+       if (!consumer->enabled) {
+               ret = -LTTNG_ERR_NO_CONSUMER;
+               DBG3("Consumer is disabled");
+               goto error;
+       }
+
        pthread_mutex_lock(socket->lock);
 
        ret = ask_channel_creation(ua_sess, ua_chan, consumer, socket, registry);
This page took 0.0241 seconds and 4 git commands to generate.