Skip to content

Commit

Permalink
Fix server_init/fini
Browse files Browse the repository at this point in the history
Signed-off-by: Li Wei <[email protected]>
Required-githooks: true
  • Loading branch information
liw committed Feb 7, 2024
1 parent 9c29493 commit fd00b27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
16 changes: 4 additions & 12 deletions src/engine/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,12 +829,8 @@ server_init(int argc, char *argv[])
exit_mod_loaded:
ds_iv_fini();
dss_module_unload_all();
if (dss_mod_facs & DSS_FAC_LOAD_CLI) {
daos_fini();
} else {
pl_fini();
daos_hhash_fini();
}
pl_fini();
daos_hhash_fini();
exit_crt:
crt_finalize();
exit_mod_init:
Expand Down Expand Up @@ -889,12 +885,8 @@ server_fini(bool force)
* Client stuff finalization needs be done after all ULTs drained
* in dss_srv_fini().
*/
if (dss_mod_facs & DSS_FAC_LOAD_CLI) {
daos_fini();
} else {
pl_fini();
daos_hhash_fini();
}
pl_fini();
daos_hhash_fini();
D_INFO("daos_fini() or pl_fini() done\n");
crt_finalize();
D_INFO("crt_finalize() done\n");
Expand Down
2 changes: 0 additions & 2 deletions src/include/daos/rsvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

#include <daos_types.h>

#define RECHOOSE_SLEEP_MS 250

/** Flags in rsvc_hint::sh_flags (opaque) */
enum rsvc_hint_flag {
RSVC_HINT_VALID = 1 /* sh_term and sh_rank contain valid info */
Expand Down

0 comments on commit fd00b27

Please sign in to comment.