projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: ust-consumer: metadata cache lock not taken when sampling max offset
[lttng-tools.git]
/
src
/
common
/
ust-consumer
/
ust-consumer.c
diff --git
a/src/common/ust-consumer/ust-consumer.c
b/src/common/ust-consumer/ust-consumer.c
index 1283d951c11240be6fd1e30ff3a4f808e9534514..f3ea024dd6330e93cf0d38b0a28a78d1daa650b4 100644
(file)
--- a/
src/common/ust-consumer/ust-consumer.c
+++ b/
src/common/ust-consumer/ust-consumer.c
@@
-3015,7
+3015,9
@@
int lttng_ustconsumer_data_pending(struct lttng_consumer_stream *stream)
uint64_t contiguous, pushed;
/* Ease our life a bit. */
uint64_t contiguous, pushed;
/* Ease our life a bit. */
+ pthread_mutex_lock(&stream->chan->metadata_cache->lock);
contiguous = stream->chan->metadata_cache->max_offset;
contiguous = stream->chan->metadata_cache->max_offset;
+ pthread_mutex_unlock(&stream->chan->metadata_cache->lock);
pushed = stream->ust_metadata_pushed;
/*
pushed = stream->ust_metadata_pushed;
/*
This page took
0.023386 seconds
and
4
git commands to generate.