Skip to content

Commit 5adab81

Browse files
authored
Merge branch 'master' into go-mysqlserver
2 parents 6478e8c + 03f4d7c commit 5adab81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

replication/binlogsyncer.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func (b *BinlogSyncer) registerSlave() error {
356356

357357
serverUUID, err := uuid.NewUUID()
358358
if err != nil {
359-
b.cfg.Logger.Errorf("failed to get new uud %v", err)
359+
b.cfg.Logger.Errorf("failed to get new uuid %v", err)
360360
return errors.Trace(err)
361361
}
362362
if _, err = b.c.Execute(fmt.Sprintf("SET @slave_uuid = '%s', @replica_uuid = '%s'", serverUUID, serverUUID)); err != nil {
@@ -404,6 +404,8 @@ func (b *BinlogSyncer) prepare() error {
404404
return errors.Trace(err)
405405
}
406406

407+
b.cfg.Logger.Infof("Connected to %s %s server", b.cfg.Flavor, b.c.GetServerVersion())
408+
407409
return nil
408410
}
409411

0 commit comments

Comments
 (0)