From: Jérémie Galarneau Date: Mon, 8 Feb 2021 18:00:56 +0000 (-0500) Subject: Clean-up: ust-consumer: simplify metadata cache unlock on error path X-Git-Tag: v2.12.3~2 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=7f1b22f2ae8abb4e0c327d5c0e561845634022ff;hp=7f1b22f2ae8abb4e0c327d5c0e561845634022ff;p=lttng-tools.git 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 Change-Id: Ib0151d9640309005dfc83e95efb538e3c4f0df4a ---