Fix: protect the channel's metadata stream using the metadata cache lock
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 21 Dec 2016 22:56:24 +0000 (17:56 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 6 Jan 2017 16:38:27 +0000 (11:38 -0500)
commita837d60e6ef365c87361a4486087e40a791a4e5f
treeea47c07f60afc30772693901ecc78c76eaf7a5e6
parent504e362ffb535a616364a82f3de68b92d4c9663d
Fix: protect the channel's metadata stream using the metadata cache lock

The consumer_thread_data_poll and consumer_thread_metadata_poll
both access the channel's metadata stream.

During a session destruction, consumer_thread_metadata_poll will
destroy all metadata streams. However, the consumer_thread_data_poll
may still invoke a consumer_metadata_cache_write() triggered
by a "ready" subbuffer. Hence, the metadata stream must be protected
from this action by the metadata cache lock.

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