Fix: if relayd is unreachable, disable consumer for the session
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index bba77023a6415ff0b52e9f0dcfde6729c5a0856f..bcf349f9290476de0268dce0e9a535e331d6dedc 100644 (file)
@@ -606,10 +606,11 @@ close_sock:
 error:
        if (ret != LTTNG_OK) {
                /*
-                * On error, nullify the consumer sequence index so streams are not
-                * associated with it once sent to the consumer.
+                * The consumer output for this session should not be used anymore
+                * since the relayd connection failed thus making any tracing or/and
+                * streaming not usable.
                 */
-               uatomic_set(&consumer->net_seq_index, -1);
+               consumer->enabled = 0;
        }
        return ret;
 }
This page took 0.023285 seconds and 4 git commands to generate.