Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15439046
D18273.id43945.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D18273.id43945.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 27, 5:24 AM (2 d, 9 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7715958
Default Alt Text
D18273.id43945.diff (2 KB)
Attached To
Mode
D18273: Don't require a device be registered in Almanac to do cluster init/resync steps
Attached
Detach File
Event Timeline
Log In to Comment