Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into log-management
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeinated92 committed Jun 6, 2024
2 parents 7baa171 + c9d5ed3 commit 9621294
Show file tree
Hide file tree
Showing 5 changed files with 1,620 additions and 1,606 deletions.
11 changes: 9 additions & 2 deletions clients/client_topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func cliGetTopology() {
headstr += " | Mode: Manual "
}

headstr += fmt.Sprintf("\n%19s %15s %6s %15s %10s %12s %20s %20s %30s %6s %3s", "Id", "Host", "Port", "Status", "Failures", "Using GTID", "Current GTID", "Slave GTID", "Replication Health", "Delay", "RO")
headstr += fmt.Sprintf("\n%19s %15s %6s %15s %10s %12s %20s %20s %30s %6s %3s %5s", "Id", "Host", "Port", "Status", "Failures", "Using GTID", "Current GTID", "Slave GTID", "Replication Health", "Delay", "RO", "MAINT")

for _, server := range cliServers {
var gtidCurr string
Expand All @@ -56,9 +56,16 @@ func cliGetTopology() {
gtidSlave = ""
}

headstr += fmt.Sprintf("\n%19s %15s %6s %15s %10d %12s %20s %20s %30s %6d %3s", server.Id, server.Host, server.Port, server.State, server.FailCount, server.GetReplicationUsingGtid(), gtidCurr, gtidSlave, "", server.GetReplicationDelay(), server.ReadOnly)
headstr += fmt.Sprintf("\n%19s %15s %6s %15s %10d %12s %20s %20s %30s %6d %3s %5s", server.Id, server.Host, server.Port, server.State, server.FailCount, server.GetReplicationUsingGtid(), gtidCurr, gtidSlave, "", server.GetReplicationDelay(), server.ReadOnly, boolToChar(server.IsMaintenance))

}
fmt.Printf(headstr)
fmt.Printf("\n")
}

func boolToChar(v bool) string {
if v {
return "Y"
}
return "N"
}
12 changes: 6 additions & 6 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ type ReplicationManager struct {
exit bool
isStarted bool
Confs map[string]config.Config
VersionConfs map[string]*config.ConfVersion
grpcServer *grpc.Server `json:"-"`
grpcWrapped *grpcweb.WrappedGrpcServer `json:"-"`
V3Up chan bool `json:"-"`
v3Config Repmanv3Config `json:"-"`
cloud18CheckSum hash.Hash `json:"-"`
VersionConfs map[string]*config.ConfVersion `json:"-"`
grpcServer *grpc.Server `json:"-"`
grpcWrapped *grpcweb.WrappedGrpcServer `json:"-"`
V3Up chan bool `json:"-"`
v3Config Repmanv3Config `json:"-"`
cloud18CheckSum hash.Hash `json:"-"`
repmanv3.UnimplementedClusterPublicServiceServer `json:"-"`
repmanv3.UnimplementedClusterServiceServer `json:"-"`
sync.Mutex
Expand Down
2 changes: 1 addition & 1 deletion share/dashboard/app/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
</div>
<footer class="footer">
<div >
<span align="right" class="text-muted">Replication-Manager {{settings.fullVersion}} © 2017-2021 SIGNAL18 CLOUD SAS</span>
<span align="right" class="text-muted">Replication-Manager {{settings.fullVersion}} © 2017-{{yearNow}} SIGNAL18 CLOUD SAS</span>
</div>
</footer>
</div>
Loading

0 comments on commit 9621294

Please sign in to comment.