Skip to content

fix(files_sharing): roll back shared storage locks on owner lock failure#62484

Draft
joshtrichards wants to merge 3 commits into
masterfrom
jtr/fix-locking-filesSharing-SharedStorage
Draft

fix(files_sharing): roll back shared storage locks on owner lock failure#62484
joshtrichards wants to merge 3 commits into
masterfrom
jtr/fix-locking-filesSharing-SharedStorage

Conversation

@joshtrichards

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

More locking behavior cleanup...

When locking a shared-storage root, failure to lock the owner parent previously left the target lock held.

This change rolls back the target lock while preserving the original exception if rollback fails. Unlocking now follows reverse acquisition order and still attempts target cleanup if the owner-side unlock fails. Tests cover rollback, cleanup ordering, and rollback failure behavior.

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Assisted-by: Copilot:GPT-5

Signed-off-by: Josh <josh.t.richards@gmail.com>
Assisted-by: Copilot:GPT-5.6

Signed-off-by: Josh <josh.t.richards@gmail.com>
Assisted-by: Copilot:GPT-5.6

Signed-off-by: Josh <josh.t.richards@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants