From: Jérémie Galarneau Date: Wed, 29 Apr 2020 04:03:43 +0000 (-0400) Subject: consumerd: refactor: combine duplicated check_*_functions X-Git-Tag: v2.11.5~34 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=bb09693bc5b9d3123e8dd5a5ac9729597b9ec3c7;hp=bb09693bc5b9d3123e8dd5a5ac9729597b9ec3c7;p=lttng-tools.git consumerd: refactor: combine duplicated check_*_functions The check_ust_stream and check_kernel_stream functions are identical except for the call to the domain-specific call to consumer_flush_*_index. A "flush_index" callback is passed to check_stream in order to share the rest of that code. Signed-off-by: Jérémie Galarneau Change-Id: Iafdb64192322c0106a555b67f54290dadc4f0579 ---