Skip to content

Commit

Permalink
Fix bad virtual lock exit handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Nov 26, 2024
1 parent 1a498b5 commit 2978a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/H5I.c
Original file line number Diff line number Diff line change
Expand Up @@ -2138,8 +2138,8 @@ herr_t H5I_vlock_exit(hid_t id) {
continue;
}

if (info_k.lock_count == 0) {
/* Lock count is already 0, no need to decrement */
if (info_k.lock_count == 0 && info_k.app_unlocks == 0) {
/* ID was fully released by this operation, so no more work is necessary */
HGOTO_DONE(SUCCEED);
}

Expand Down

0 comments on commit 2978a6e

Please sign in to comment.