Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14013186
D16492.id39689.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
922 B
Referenced Files
None
Subscribers
None
D16492.id39689.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D16492: Ignore repository versions on inactive devices in "Repository Servers" panel in Config
Attached
Detach File
Event Timeline
Log In to Comment