Skip to content

Commit ec6c17b

Browse files
committed
Renamed LocalHostname to localhostName.
1 parent 2818d7e commit ec6c17b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

replication/binlogsyncer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func NewBinlogSyncer(serverID uint32, flavor string) *BinlogSyncer {
6565
return b
6666
}
6767

68-
func (b *BinlogSyncer) LocalHostname() string {
68+
func (b *BinlogSyncer) localhostName() string {
6969

7070
if b.LocalHost == "" {
7171
h, _ := os.Hostname()
@@ -412,7 +412,7 @@ func (b *BinlogSyncer) writeBinlogDumpMariadbGTIDCommand(gset GTIDSet) error {
412412
func (b *BinlogSyncer) writeRegisterSlaveCommand() error {
413413
b.c.ResetSequence()
414414

415-
hostname := b.LocalHostname()
415+
hostname := b.localhostName()
416416

417417
// This should be the name of slave host not the host we are connecting to.
418418
data := make([]byte, 4+1+4+1+len(hostname)+1+len(b.user)+1+len(b.password)+2+4+4)

0 commit comments

Comments
 (0)