From: Mathieu Desnoyers Date: Mon, 12 Dec 2011 18:56:44 +0000 (-0500) Subject: Fix unset metadata buffer self ref X-Git-Tag: v1.9.1~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cb14bae9a1eed58f0c07f2529e2a5dfa931dd10c;p=lttng-ust.git Fix unset metadata buffer self ref Caused the metadata flush to never be done. Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/ring_buffer_backend.c b/libringbuffer/ring_buffer_backend.c index 95346049..dead6960 100644 --- a/libringbuffer/ring_buffer_backend.c +++ b/libringbuffer/ring_buffer_backend.c @@ -292,6 +292,7 @@ int channel_backend_init(struct channel_backend *chanb, buf = shmp(handle, chanb->buf[0].shmp); if (!buf) goto end; + set_shmp(buf->self, chanb->buf[0].shmp._ref); ret = lib_ring_buffer_create(buf, chanb, -1, handle, shmobj); if (ret)