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.
2 parents 22cfcd4 + 58b0bf9 commit 3f7a3a8Copy full SHA for 3f7a3a8
go/inst/cluster_alias_dao.go
@@ -126,16 +126,15 @@ 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
- order by
136
- ifnull(last_checked <= last_seen, 0) asc,
137
- read_only desc,
138
- num_slave_hosts asc
+ group by
+ suggested_cluster_alias, cluster_name
139
`, DowntimeLostInRecoveryMessage)
140
return log.Errore(err)
141
}
0 commit comments