From 73baaab498656b961c316c2b0bd93eba78e1c71c Mon Sep 17 00:00:00 2001 From: wangdi Date: Fri, 15 Nov 2024 14:57:32 -0800 Subject: [PATCH] DAOS-16783 client: move daos_hhash_fini ahead (#15452) Move daos_hhash_fini ahead of dc_pool_fini() and dc_obj_fini(), since daos_hhash_fini() may cause obj_free and dc_pool_fini, otherwise it will cause segfault during daos_fini(). Signed-off-by: Di Wang --- src/client/api/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/api/init.c b/src/client/api/init.c index 26fb68ea2d0..4c6ab9dd186 100644 --- a/src/client/api/init.c +++ b/src/client/api/init.c @@ -334,6 +334,8 @@ daos_fini(void) D_GOTO(unlock, rc); } + daos_hhash_fini(); + /** clean up all registered per-module metrics */ daos_metrics_fini(); #if BUILD_PIPELINE @@ -354,7 +356,6 @@ daos_fini(void) dc_job_fini(); pl_fini(); - daos_hhash_fini(); daos_debug_fini(); module_initialized = 0; unlock: