Skip to content

Commit

Permalink
Fix restart issue
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun committed Feb 13, 2025
1 parent 4b335f3 commit a8cf132
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/pdc_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,9 @@ PDC_Server_init(int port, hg_class_t **hg_class, hg_context_t **hg_context)
printf("==PDC_SERVER[%d]: Read cache enabled!\n", pdc_server_rank_g);
#endif

// Initialize IDIOMS
PDC_Server_metadata_index_init(pdc_server_size_g, pdc_server_rank_g);

// TODO: support restart with different number of servers than previous run
char checkpoint_file[ADDR_MAX + sizeof(int) + 1];
if (is_restart_g == 1) {
Expand Down Expand Up @@ -993,9 +996,6 @@ PDC_Server_init(int port, hg_class_t **hg_class, hg_context_t **hg_context)

n_metadata_g = 0;

// Initialize IDIOMS
PDC_Server_metadata_index_init(pdc_server_size_g, pdc_server_rank_g);

// PDC transfer_request infrastructures
PDC_server_transfer_request_init();
#ifdef PDC_SERVER_CACHE
Expand Down

0 comments on commit a8cf132

Please sign in to comment.