Skip to content

Commit 157dba9

Browse files
Add mysql port and version
1 parent 23a421c commit 157dba9

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

go/logic/server.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,20 @@ help # This message
180180
return NoPrintStatusRule, fmt.Errorf("coordinates are read-only")
181181
}
182182
case "applier":
183-
fmt.Fprintf(writer, "Hostname: %s\n", this.migrationContext.GetApplierHostname())
183+
if this.migrationContext.ApplierConnectionConfig != nil && this.migrationContext.ApplierConnectionConfig.ImpliedKey != nil {
184+
fmt.Fprintf(writer, "Host: %s, Version: %s\n",
185+
this.migrationContext.ApplierConnectionConfig.ImpliedKey.String(),
186+
this.migrationContext.ApplierMySQLVersion,
187+
)
188+
}
184189
return NoPrintStatusRule, nil
185190
case "inspector":
186-
fmt.Fprintf(writer, "Hostname: %s\n", this.migrationContext.GetInspectorHostname())
191+
if this.migrationContext.InspectorConnectionConfig != nil && this.migrationContext.InspectorConnectionConfig.ImpliedKey != nil {
192+
fmt.Fprintf(writer, "Host: %s, Version: %s\n",
193+
this.migrationContext.InspectorConnectionConfig.ImpliedKey.String(),
194+
this.migrationContext.InspectorMySQLVersion,
195+
)
196+
}
187197
return NoPrintStatusRule, nil
188198
case "chunk-size":
189199
{

0 commit comments

Comments
 (0)