Differential D21584 Diff 51386 src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
Show First 20 Lines • Show All 305 Lines • ▼ Show 20 Lines | public function synchronizeWorkingCopyBeforeWrite() { | ||||
$device_phid = $device->getPHID(); | $device_phid = $device->getPHID(); | ||||
$table = new PhabricatorRepositoryWorkingCopyVersion(); | $table = new PhabricatorRepositoryWorkingCopyVersion(); | ||||
$locked_connection = $table->establishConnection('w'); | $locked_connection = $table->establishConnection('w'); | ||||
$write_lock = PhabricatorRepositoryWorkingCopyVersion::getWriteLock( | $write_lock = PhabricatorRepositoryWorkingCopyVersion::getWriteLock( | ||||
$repository_phid); | $repository_phid); | ||||
$write_lock->useSpecificConnection($locked_connection); | $write_lock->setExternalConnection($locked_connection); | ||||
$this->logLine( | $this->logLine( | ||||
pht( | pht( | ||||
'Acquiring write lock for repository "%s"...', | 'Acquiring write lock for repository "%s"...', | ||||
$repository->getDisplayName())); | $repository->getDisplayName())); | ||||
// See T13590. On the HTTP pathway, it's possible for us to hit the script | // See T13590. On the HTTP pathway, it's possible for us to hit the script | ||||
// time limit while holding the durable write lock if a user makes a big | // time limit while holding the durable write lock if a user makes a big | ||||
▲ Show 20 Lines • Show All 566 Lines • Show Last 20 Lines |