Skip to content

Commit

Permalink
Select server topology ancestors from the same CDN as the base server (
Browse files Browse the repository at this point in the history
…#5578)

(cherry picked from commit eed246c)
  • Loading branch information
zrhoffman authored and ocket8888 committed Feb 26, 2021
1 parent 9455a88 commit d735833
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Fixed an issue with 2020082700000000_server_id_primary_key.sql trying to create multiple primary keys when there are multiple schemas.
- Fix for public schema in 2020062923101648_add_deleted_tables.sql
- Moved move_lets_encrypt_to_acme.sql, add_max_request_header_size_delivery_service.sql, and server_interface_ip_address_cascade.sql past last migration in 5.0.0
- [#5505](https://github.com/apache/trafficcontrol/issues/5505) - Make `parent_reval_pending` for servers in a Flexible Topology CDN-specific on `GET /servers/{name}/update_status`

### Changed
- Refactored the Traffic Ops Go client internals so that all public methods have a consistent behavior/implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,16 @@ SELECT
status.name AS status,
/* True if the cachegroup parent or any ancestor topology node has pending updates. */
TRUE IN (
SELECT sta.upd_pending FROM server_topology_ancestors sta WHERE sta.base_server_id = s.id
SELECT sta.upd_pending FROM server_topology_ancestors sta
WHERE sta.base_server_id = s.id
AND sta.cdn_id = s.cdn_id
UNION SELECT COALESCE(BOOL_OR(ps.upd_pending), FALSE)
) AS parent_upd_pending,
/* True if the cachegroup parent or any ancestor topology node has pending revalidation. */
TRUE IN (
SELECT sta.reval_pending FROM server_topology_ancestors sta WHERE sta.base_server_id = s.id
SELECT sta.reval_pending FROM server_topology_ancestors sta
WHERE sta.base_server_id = s.id
AND sta.cdn_id = s.cdn_id
UNION SELECT COALESCE(BOOL_OR(ps.reval_pending), FALSE)
) AS parent_reval_pending
FROM use_reval_pending,
Expand Down

0 comments on commit d735833

Please sign in to comment.