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)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 21 Sep 2018 04:24:13 +0000 (00:24 -0400)
commita34de389971fdcb6d367efab780710a2f8e1c703
tree21a5bdf7eddc783c3b960476647c837c4ff882ff
parent4213c2279637b397d7be3764288b5b26749ad6d1
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.027664 seconds and 5 git commands to generate.