Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14398858
D15692.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
909 B
Referenced Files
None
Subscribers
None
D15692.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 3:07 PM (18 h, 36 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6921478
Default Alt Text
D15692.diff (909 B)
Attached To
Mode
D15692: Ignore post-write repository synchronization if no devices are configured
Attached
Detach File
Event Timeline
Log In to Comment