Page MenuHomePhabricator

Fix an issue where we would try to release an unheld lock
ClosedPublic

Authored by epriestley on Apr 1 2015, 11:23 PM.
Tags
None
Referenced Files
F13182477: D12253.diff
Thu, May 9, 11:30 PM
Unknown Object (File)
Mon, May 6, 2:14 AM
Unknown Object (File)
Fri, May 3, 5:24 AM
Unknown Object (File)
Thu, May 2, 5:36 PM
Unknown Object (File)
Apr 11 2024, 10:34 AM
Unknown Object (File)
Mar 26 2024, 5:27 PM
Unknown Object (File)
Mar 22 2024, 10:37 PM
Unknown Object (File)
Mar 4 2024, 8:52 PM
Subscribers

Details

Summary

Fixes T7484. If the lock failed, we'd still try to unlock it, which is incorrect.

Test Plan

Ran two bin/repository update X in different windows, got proper LockException instead of indirect symptomatic "not locked by this process" exception.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix an issue where we would try to release an unheld lock.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Apr 2 2015, 12:08 AM
This revision was automatically updated to reflect the committed changes.