Skip to content

Commit

Permalink
DAOS-16783 client: move daos_hhash_fini ahead (#15452)
Browse files Browse the repository at this point in the history
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 <ddiwang@google.com>
  • Loading branch information
wangdi1 authored Nov 15, 2024
1 parent c3a7800 commit 73baaab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/api/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -354,7 +356,6 @@ daos_fini(void)
dc_job_fini();

pl_fini();
daos_hhash_fini();
daos_debug_fini();
module_initialized = 0;
unlock:
Expand Down

0 comments on commit 73baaab

Please sign in to comment.