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:41 +0000 (15:59 -0500)
commitfc9390b19f80ea9fe64783156ea5fdcee8b93817
tree65a3f2fc08662fff1cd2be013e5294fc04dcf53a
parenta23ca18428f7e2b8bece8d3f47a9c274cf030ec4
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.025724 seconds and 4 git commands to generate.