From: Mathieu Desnoyers Date: Wed, 14 Aug 2019 20:32:58 +0000 (-0400) Subject: Fix: consumer: put each chunk on teardown X-Git-Tag: v2.12.0-rc1~476 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=e10aec8f225c0822811c65401710a039d7e2d7d7;hp=e10aec8f225c0822811c65401710a039d7e2d7d7;p=lttng-tools.git Fix: consumer: put each chunk on teardown Trace chunks in the registry may still exist because those are top-level entities for which we may have received a "create" command from session daemon without pairing "destroy". Iterate on the entire chunk registry and put the sessiond reference for each chunk on consumerd teardown Fixes the following assert on teardown caused by non-empty registry on SIGINT: lttng-consumerd: trace-chunk.c:1109: lttng_trace_chunk_registry_destroy: Assertion `!ret' failed. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---