Skip to content

Commit

Permalink
Fix an issue that may cause a hang at file close time
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun committed Sep 14, 2023
1 parent 9256538 commit 68faecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/h5_async_vol.c
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ push_task_to_abt_pool(async_qhead_t *qhead, ABT_pool pool, const char *call_func
// Can push the current task to execution
if (task_elt && task_elt->is_done == 0 && task_elt->in_abt_pool == 0) {
ntask = get_n_running_task_in_queue_nolock(task_elt, __func__);
if (ntask > 1) {
if (ntask > 0) {
func_log_int1(__func__, "skipping create thread, ntask in pool", ntask);
ret_val = -1;
goto done;
Expand Down

0 comments on commit 68faecb

Please sign in to comment.