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 18:44:06 +0000 (13:44 -0500)
commit081424af9c3314d41eda58592d9fd6a66d94e852
treed1b77388eb810d5ea88a289fe1139cb65a102144
parent1ea6cc572bffbebf2ef9cbdd1098a35c5d0411aa
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.026527 seconds and 5 git commands to generate.