Fix unset metadata buffer self ref
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 12 Dec 2011 18:56:44 +0000 (13:56 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 12 Dec 2011 18:56:44 +0000 (13:56 -0500)
Caused the metadata flush to never be done.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/ring_buffer_backend.c

index 95346049f5b20f9f92d0cd9e3875b4a76e84b54b..dead69600f7a06391d9b276e348820eb0a59208a 100644 (file)
@@ -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)
This page took 0.038192 seconds and 4 git commands to generate.