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)
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
Unknown Object (File)
Sat, Apr 13, 2:13 PM
Unknown Object (File)
Thu, Apr 11, 10:50 AM
Unknown Object (File)
Tue, Apr 2, 8:46 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable