X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer-metadata-cache.c;h=4c8a665af0db7aa1d5d8224edcfac96c5fc2fbb2;hb=774d490c42598710944f54a53d81d1cab2a1dfaa;hp=c6e6c6b164a423b81dace0312ee3c71c9cb3626e;hpb=a9838785aecf564595c531772f7ca906b658afa0;p=lttng-tools.git diff --git a/src/common/consumer-metadata-cache.c b/src/common/consumer-metadata-cache.c index c6e6c6b16..4c8a665af 100644 --- a/src/common/consumer-metadata-cache.c +++ b/src/common/consumer-metadata-cache.c @@ -203,6 +203,11 @@ int consumer_metadata_cache_flushed(struct lttng_consumer_channel *channel, cache = channel->metadata_cache; + /* + * XXX This consumer_data.lock should eventually be replaced by + * a channel lock. It protects metadata_stream read and endpoint + * status check. + */ pthread_mutex_lock(&consumer_data.lock); pthread_mutex_lock(&channel->lock); pthread_mutex_lock(&channel->metadata_cache->lock);