Skip to content

Commit

Permalink
Fix a thread race issue that may cause memory error when larger than …
Browse files Browse the repository at this point in the history
…cache max size data is transferred
  • Loading branch information
houjun committed Jan 27, 2025
1 parent b8ad03f commit 5be4c19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/pdc_server_region/pdc_server_region_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,8 +967,9 @@ PDC_region_cache_clock_cycle(void *ptr)
}
}
else {
pthread_mutex_lock(&pdc_obj_cache_list_mutex);
obj_cache_iter = obj_cache_iter->next;
/* pthread_mutex_unlock(&pdc_obj_cache_list_mutex); */
pthread_mutex_unlock(&pdc_obj_cache_list_mutex);

/* PDC_get_time_str(cur_time); */
/* fprintf(stderr, "%s ==PDC_SERVER[%d]: stop flush to allow processing new RPCs\n", */
Expand Down

0 comments on commit 5be4c19

Please sign in to comment.