Fix: acquire stream lock during kernel metadata snapshot
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 11 Sep 2018 00:09:12 +0000 (20:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Sep 2018 01:33:24 +0000 (21:33 -0400)
commit78346e6812d33fba1eb89f27f05cc1042e166822
treec025afaf694167a3d1c5cdd2aa2fb4c183688f46
parentfee5a44e67588de9136570952da9f30fd2ccf9fd
Fix: acquire stream lock during kernel metadata snapshot

The stream lock is not taken when interacting with the kernel
metadata stream that is created at the time a snapshot is taken.

This was noticed while reviewing the code for an unrelated reason,
so there is no known problem caused by this. Nevertheless, this
is incorrect as the stream is globally visible in the consumer.

Moreover, the stream was not cleaned-up which can cause a leak
whenever a metadata snapshot fails.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/common/kernel-consumer/kernel-consumer.c
This page took 0.028112 seconds and 5 git commands to generate.