We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e513395 commit 8712903Copy full SHA for 8712903
go/inst/cluster_alias_dao.go
@@ -126,15 +126,16 @@ func UpdateClusterAliases() error {
126
left join database_instance_downtime using (hostname, port)
127
where
128
suggested_cluster_alias!=''
129
- and cluster_name != ''
130
/* exclude newly demoted, downtimed masters */
131
and ifnull(
132
database_instance_downtime.downtime_active = 1
133
and database_instance_downtime.end_timestamp > now()
134
and database_instance_downtime.reason = ?
135
, 0) = 0
136
- group by
137
- suggested_cluster_alias, cluster_name
+ order by
+ ifnull(last_checked <= last_seen, 0) asc,
+ read_only desc,
138
+ num_slave_hosts asc
139
`, DowntimeLostInRecoveryMessage)
140
return log.Errore(err)
141
}
0 commit comments