Page MenuHomePhabricator

D16492.id39689.diff
No OneTemporary

D16492.id39689.diff

diff --git a/src/applications/config/controller/PhabricatorConfigClusterRepositoriesController.php b/src/applications/config/controller/PhabricatorConfigClusterRepositoriesController.php
--- a/src/applications/config/controller/PhabricatorConfigClusterRepositoriesController.php
+++ b/src/applications/config/controller/PhabricatorConfigClusterRepositoriesController.php
@@ -153,6 +153,14 @@
$versions = idx($repository_versions, $repository_phid, array());
+ // Filter out any versions for devices which are no longer active.
+ foreach ($versions as $key => $version) {
+ $version_device_phid = $version->getDevicePHID();
+ if (empty($active_devices[$version_device_phid])) {
+ unset($versions[$key]);
+ }
+ }
+
$leaders = 0;
foreach ($versions as $version) {
if ($version->getRepositoryVersion() == $leader_version) {

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 3, 1:58 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6757407
Default Alt Text
D16492.id39689.diff (922 B)

Event Timeline