Page MenuHomePhabricator

D18273.diff
No OneTemporary

D18273.diff

diff --git a/src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php b/src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
--- a/src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
+++ b/src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
@@ -58,7 +58,7 @@
* @task sync
*/
public function synchronizeWorkingCopyAfterCreation() {
- if (!$this->shouldEnableSynchronization()) {
+ if (!$this->shouldEnableSynchronization(false)) {
return;
}
@@ -86,7 +86,7 @@
* @task sync
*/
public function synchronizeWorkingCopyAfterHostingChange() {
- if (!$this->shouldEnableSynchronization()) {
+ if (!$this->shouldEnableSynchronization(false)) {
return;
}
@@ -133,7 +133,7 @@
* @task sync
*/
public function synchronizeWorkingCopyBeforeRead() {
- if (!$this->shouldEnableSynchronization()) {
+ if (!$this->shouldEnableSynchronization(true)) {
return;
}
@@ -288,7 +288,7 @@
* @task sync
*/
public function synchronizeWorkingCopyBeforeWrite() {
- if (!$this->shouldEnableSynchronization()) {
+ if (!$this->shouldEnableSynchronization(true)) {
return;
}
@@ -382,7 +382,7 @@
public function synchronizeWorkingCopyAfterDiscovery($new_version) {
- if (!$this->shouldEnableSynchronization()) {
+ if (!$this->shouldEnableSynchronization(true)) {
return;
}
@@ -426,7 +426,7 @@
* @task sync
*/
public function synchronizeWorkingCopyAfterWrite() {
- if (!$this->shouldEnableSynchronization()) {
+ if (!$this->shouldEnableSynchronization(true)) {
return;
}
@@ -551,7 +551,7 @@
/**
* @task internal
*/
- private function shouldEnableSynchronization() {
+ private function shouldEnableSynchronization($require_device) {
$repository = $this->getRepository();
$service_phid = $repository->getAlmanacServicePHID();
@@ -563,9 +563,11 @@
return false;
}
- $device = AlmanacKeys::getLiveDevice();
- if (!$device) {
- return false;
+ if ($require_device) {
+ $device = AlmanacKeys::getLiveDevice();
+ if (!$device) {
+ return false;
+ }
}
return true;

File Metadata

Mime Type
text/plain
Expires
Tue, May 14, 4:48 AM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6294791
Default Alt Text
D18273.diff (2 KB)

Event Timeline