Fix: only lock the metadata_cache in userspace consumers
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 7 Jan 2017 18:42:12 +0000 (13:42 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 7 Jan 2017 20:59:47 +0000 (15:59 -0500)
commit4486a5729f7938cd4aa4c936c8cd8ba71f69534e
treea3f71f7b0cc3535909a0496563107230eeb4cfba
parent30bf3dcbbee27b343bbf1552330d31be5a7f1fb6
Fix: only lock the metadata_cache in userspace consumers

The kernel consumer, which re-uses the consumer_del_metadata_stream
function, has no metadata cache. Therefore, it can't be used to
protect the metadata stream (see 5feafd41).

However, only the userspace consumers invoke
consumer_metadata_cache_write() which the previous fix seeked to
protect against. It is therefore safe to omit this lock in the
kernel consumer case.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.c
This page took 0.025612 seconds and 4 git commands to generate.