Commit 9851714
Oracle Public Cloud User
fix(session): guard fallback lock cleanup with reentrancy check
The original fallback unconditionally force-removed the lock file
whenever pid matched, which broke reentrant lock semantics — the
first release in a reentrant pair would remove the file while
another holder still expected it to exist.
Now checks sessionLockHeldByThisProcess before the fallback cleanup.
If any reentrant holder remains, the lock file is preserved as
sidecar-lock intends.1 parent 39cb851 commit 9851714
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | | - | |
995 | | - | |
| 994 | + | |
| 995 | + | |
996 | 996 | | |
997 | | - | |
998 | | - | |
999 | | - | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
1000 | 1002 | | |
1001 | 1003 | | |
1002 | 1004 | | |
| |||
0 commit comments