X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=3709092198e5a9d1fcf6781134ba7e645ce3e202;hb=a0c83db984f8c20897666eef226b43fce81d0e13;hp=a856f030efe63c3553c820d96012b065e9817e8b;hpb=07d2ae956551db46c137f85847a6d2972b1b0c9d;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index a856f030e..370909219 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -2019,9 +2019,6 @@ static int add_metadata_stream(struct lttng_consumer_stream *stream, uatomic_inc(&relayd->refcount); } - /* Update channel refcount once added without error(s). */ - uatomic_inc(&stream->chan->refcount); - /* * When nb_init_stream_left reaches 0, we don't need to trigger any action * in terms of destroying the associated channel, because the action that