Page MenuHomePhabricator

Parameterize the repository read and write locks
ClosedPublic

Authored by epriestley on Sep 23 2018, 3:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 10:41 PM
Unknown Object (File)
Thu, Dec 12, 10:41 PM
Unknown Object (File)
Sat, Dec 7, 3:29 PM
Unknown Object (File)
Thu, Dec 5, 11:33 AM
Unknown Object (File)
Sun, Dec 1, 3:53 PM
Unknown Object (File)
Sun, Dec 1, 3:53 PM
Unknown Object (File)
Sat, Nov 30, 3:34 AM
Unknown Object (File)
Mon, Nov 25, 2:36 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