mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-22 11:54:54 +00:00
Merge pull request #750 from ylacancellera/PT-2298_pt-galera-log-explainer_superfluous_lines_on_conflicts
PT-2298 pt-galera-log-explainer superfluous lines on conflicts
This commit is contained in:
@@ -92,13 +92,16 @@ var ApplicativeMap = types.RegexMap{
|
||||
|
||||
return logCtx, func(logCtx types.LogCtx) string {
|
||||
|
||||
for _, name := range logCtx.OwnNames {
|
||||
vote, ok := latestConflict.VotePerNode[name]
|
||||
if !ok {
|
||||
for _, localname := range logCtx.OwnNames {
|
||||
if node != localname {
|
||||
// don't print other nodes vote, their should be in their own column
|
||||
// else it just takes too much place without adding much usability
|
||||
continue
|
||||
}
|
||||
|
||||
return voteResponse(vote, *latestConflict)
|
||||
if vote, ok := latestConflict.VotePerNode[localname]; ok {
|
||||
return voteResponse(vote, *latestConflict)
|
||||
}
|
||||
}
|
||||
|
||||
return ""
|
||||
|
Reference in New Issue
Block a user