X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.h;h=18f64b6ef4ad5ca7e6bb05e7310a2e324e92b71a;hb=ace17efaf90b672f303b22959146c01793e9d4b2;hp=fe396c017a6f4109291d95aa64d50a462c7a3dcb;hpb=feb78e88e113ec8c6918253e93136b5f6235ad31;p=lttng-tools.git diff --git a/src/common/consumer.h b/src/common/consumer.h index fe396c017..18f64b6ef 100644 --- a/src/common/consumer.h +++ b/src/common/consumer.h @@ -396,8 +396,14 @@ struct lttng_consumer_local_data { enum lttng_consumer_type type; /* socket to communicate errors with sessiond */ int consumer_error_socket; - /* socket to ask metadata to sessiond */ + /* socket to ask metadata to sessiond. */ int consumer_metadata_socket; + /* + * Protect consumer_metadata_socket. + * + * This is nested OUTSIDE the metadata cache lock. + */ + pthread_mutex_t metadata_socket_lock; /* socket to exchange commands with sessiond */ char *consumer_command_sock_path; /* communication with splice */