diff options
author | Jeff Darcy <jdarcy@fb.com> | 2017-06-30 07:07:16 -0700 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-07-01 02:56:14 +0000 |
commit | 5a67bc07db128782024ccb7c8ec3a35a8542e540 (patch) | |
tree | 07424082b57411de65537aae745f361834847da5 /libglusterfs/src/mem-pool.h | |
parent | b4db625d0ccb4fdc6537ed9f6e8ebeaffd1c4873 (diff) |
libglusterfs: add mem_pools_fini
This also makes mem_pools_init and mem_pools_fini re-callable, so GFAPI
can go through infinite init/fini cycles if they want to. Not saying
that's a good idea, but at least it's safe.
Change-Id: I617913410bcff54568b802cb653f48bdd533bd65
Signed-off-by: Jeff Darcy <jdarcy@fb.com>
Reviewed-on: https://review.gluster.org/17662
Smoke: Gluster Build System <jenkins@build.gluster.org>
Tested-by: Jeff Darcy <jeff@pl.atyp.us>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'libglusterfs/src/mem-pool.h')
-rw-r--r-- | libglusterfs/src/mem-pool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/mem-pool.h b/libglusterfs/src/mem-pool.h index 1b8132bf315..5ae411fd3d6 100644 --- a/libglusterfs/src/mem-pool.h +++ b/libglusterfs/src/mem-pool.h @@ -257,6 +257,7 @@ struct mem_pool { }; void mem_pools_init (void); +void mem_pools_fini (void); struct mem_pool * mem_pool_new_fn (unsigned long sizeof_type, unsigned long count, char *name); |