Skip to content

Commit

Permalink
Merge branch 'master' into go-mysqlserver
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 authored Oct 28, 2024
2 parents 6478e8c + 03f4d7c commit 5adab81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion replication/binlogsyncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ func (b *BinlogSyncer) registerSlave() error {

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

b.cfg.Logger.Infof("Connected to %s %s server", b.cfg.Flavor, b.c.GetServerVersion())

return nil
}

Expand Down

0 comments on commit 5adab81

Please sign in to comment.