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>
Fri, 19 Feb 2021 18:48:18 +0000 (13:48 -0500)
commit7f1b22f2ae8abb4e0c327d5c0e561845634022ff
tree8b628f9fd8e7b92ffaab4b01f83fa42e536b86f9
parent6484593b6a992275daf026746cda53ddf38ef155
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.025682 seconds and 4 git commands to generate.