Skip to content

Commit

Permalink
Replace function
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun committed Oct 24, 2024
1 parent 8fe16eb commit a06cc24
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/server/pdc_server_region/pdc_server_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,27 +283,8 @@ PDC_Server_region_lock_status(PDC_mapping_info_t *mapped_region, int *lock_statu
FUNC_LEAVE(ret_value);
}

data_server_region_t *
PDC_Server_get_obj_region(pdcid_t obj_id)
{
data_server_region_t *ret_value = NULL;
data_server_region_t *elt = NULL;

FUNC_ENTER(NULL);

if (dataserver_region_g != NULL) {
DL_FOREACH(dataserver_region_g, elt)
{
if (elt->obj_id == obj_id)
ret_value = elt;
}
}

FUNC_LEAVE(ret_value);
}

pdc_data_server_io_list_t *
PDC_Server_get_obj_region_tang(pdcid_t obj_id)
PDC_Server_get_obj_region(pdcid_t obj_id)
{
pdc_data_server_io_list_t *ret_value = NULL;
pdc_data_server_io_list_t *elt = NULL;
Expand Down Expand Up @@ -7965,7 +7946,7 @@ attach_local_storage_region_to_query(pdc_query_t *query)
/* } */
/* query->constraint->storage_region_list_head = meta->storage_region_list_head; */

obj_reg = PDC_Server_get_obj_region_tang(query->constraint->obj_id);
obj_reg = PDC_Server_get_obj_region(query->constraint->obj_id);
if (obj_reg == NULL) {
printf("==PDC_SERVER[%d]: %s - cannot find region from object!\n", pdc_server_rank_g, __func__);
}
Expand Down

0 comments on commit a06cc24

Please sign in to comment.