PT-2298 pt-galera-log-explainer superfluous lines on conflicts

This commit is contained in:
Yoann La Cancellera
2024-01-08 18:37:57 +01:00
parent 8521dd0c3c
commit 97cc3ebb01
4 changed files with 24 additions and 4 deletions

View File

@@ -92,9 +92,11 @@ 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 {
vote, ok := latestConflict.VotePerNode[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
if node != localname || !ok {
continue
}