Clean-up: ust-consumer: simplify metadata cache unlock on error path
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 8 Feb 2021 18:00:56 +0000 (13:00 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 23 Feb 2021 16:08:12 +0000 (11:08 -0500)
commit6791112142b503d8f92cca737cc37215b1057568
tree96980b587e9b20ab2b2706e5c7a45c2297db4f99
parent54b393a43bf05fc453c609a8c3532250733e3759
Clean-up: ust-consumer: simplify metadata cache unlock on error path

The metadata cache lock can be released directly after the call to
consumer_metadata_cache_write() since nothing depends on the cache
being locked after.

This simplifies the unlocking of the metadata cache by removing an
extra "unlock" that is specific to an error path.

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