Skip to content

Commit ec8b665

Browse files
committed
Implementing the small FR DISTMYSQL-182 as also suggested by customer in the comments, just adding the <db>.Ping() to check if the instance is really available or not.
1 parent a48d8b2 commit ec8b665

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/inst/instance_dao.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ func ReadTopologyInstanceBufferable(instanceKey *InstanceKey, bufferWrites bool,
380380

381381
latency.Start("instance")
382382
db, err := db.OpenDiscovery(instanceKey.Hostname, instanceKey.Port)
383+
err = db.Ping()
383384
latency.Stop("instance")
384385
if err != nil {
385386
goto Cleanup

0 commit comments

Comments
 (0)