]> sourceware.org Git - lvm2.git/commitdiff
Can't have a global memory pool in lvmetad (that would constitute an ongoing
authorPetr Rockai <prokai@redhat.com>
Wed, 20 Jul 2011 16:49:21 +0000 (16:49 +0000)
committerPetr Rockai <prokai@redhat.com>
Wed, 20 Jul 2011 16:49:21 +0000 (16:49 +0000)
memory leak) => remove it (it's been unused anyway).

daemons/lvmetad/lvmetad-core.c

index adeaf991ed5e2739d497a49bdf37dd1232f5f900..3dccbaed92cd5761cf87c73913400c90414e1c32 100644 (file)
@@ -7,7 +7,6 @@
 #include "../common/daemon-server.h"
 
 typedef struct {
-       struct dm_pool *mem;
        struct dm_hash_table *pvs;
        struct dm_hash_table *vgs;
        struct dm_hash_table *pvid_to_vgid;
@@ -262,9 +261,8 @@ static int init(daemon_state *s)
 
        ls->pvs = dm_hash_create(32);
        ls->vgs = dm_hash_create(32);
-       ls->mem = dm_pool_create("lvmetad", 1024); /* whatever */
        fprintf(stderr, "[D] initialised state: vgs = %p\n", ls->vgs);
-       if (!ls->pvs || !ls->vgs || !ls->mem)
+       if (!ls->pvs || !ls->vgs)
                return 0;
 
        /* if (ls->initial_registrations)
@@ -276,7 +274,6 @@ static int init(daemon_state *s)
 static int fini(daemon_state *s)
 {
        lvmetad_state *ls = s->private;
-       dm_pool_destroy(ls->mem);
        return 1;
 }
 
This page took 0.03654 seconds and 5 git commands to generate.