Page MenuHomePhabricator

D15692.diff
No OneTemporary

D15692.diff

diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -2375,6 +2375,11 @@
* @task sync
*/
public function synchronizeWorkingCopyAfterWrite() {
+ $device = AlmanacKeys::getLiveDevice();
+ if (!$device) {
+ return;
+ }
+
if (!$this->clusterWriteLock) {
throw new Exception(
pht(
@@ -2382,14 +2387,6 @@
'lock!'));
}
- $device = AlmanacKeys::getLiveDevice();
- if (!$device) {
- throw new Exception(
- pht(
- 'Trying to synchronize after write, but this host is not an '.
- 'Almanac device.'));
- }
-
$repository_phid = $this->getPHID();
$device_phid = $device->getPHID();

File Metadata

Mime Type
text/plain
Expires
Thu, May 16, 1:34 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6289800
Default Alt Text
D15692.diff (909 B)

Event Timeline