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 20, 2024
1 parent d268b32 commit fb1ef77
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 fb1ef77

Please sign in to comment.