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:36 +0000 (21:33 -0400)
commitf36acc1a1dddc6e6c929cc7cc1f9b56300f2226a
treead21bbe5b48b36db16c2b3e4156329ee73487063
parentbaa8150c013cda7f44bb7d82b44242f4030b472b
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.024828 seconds and 4 git commands to generate.