Page MenuHomePhabricator

Parameterize the repository read and write locks
ClosedPublic

Authored by epriestley on Sep 23 2018, 3:43 PM.
Tags
None
Referenced Files
F13146557: D19701.diff
Fri, May 3, 10:10 AM
Unknown Object (File)
Mon, Apr 29, 6:09 PM
Unknown Object (File)
Thu, Apr 25, 3:42 AM
Unknown Object (File)
Fri, Apr 19, 4:38 AM
Unknown Object (File)
Fri, Apr 19, 1:21 AM
Unknown Object (File)
Tue, Apr 16, 6:46 PM
Unknown Object (File)
Mon, Apr 15, 3:17 PM
Unknown Object (File)
Mon, Apr 15, 3:17 PM
Subscribers
None

Details

Summary

Ref T13202. See PHI889. Update the read and write locks to the modern parameterized verison, which handles hashing/normalization and can store better logs.

This parameterized mode was added in D19173 and has been used successfully for some time, but not all locks have switched over to it yet.

Test Plan
  • Added an fprintf(STDERR, $full_name) to the lock code.
  • Pulled a repository.
  • Saw sensible lock name on stdout before "acquired read lock...".
  • Additional changes in this patch series will vet this more completely.

Diff Detail

Repository
rP Phabricator
Branch
lock1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20885
Build 28398: Run Core Tests
Build 28397: arc lint + arc unit