Skip to content

This fixes issue #34. Using the wrong hostname. #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

gdey
Copy link
Contributor

@gdey gdey commented Jan 22, 2016

When registering as a slave we are using the wrong hostname. It should
be our hostname, not the hostname name of the server we are connecting
to.

When registering as a slave we are using the wrong hostname. It should
be our hostname, not the hostname name of the server we are connecting
to.
@@ -62,6 +65,15 @@ func NewBinlogSyncer(serverID uint32, flavor string) *BinlogSyncer {
return b
}

func (b *BinlogSyncer) LocalHostname() string {

if b.MyHost == "" {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is MyHost?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, that should have been LocalHost, not MyHost. I started with MyHost, then change my mind on the name. I just missed this when I redid the changes on my local computer. I'm surprised that the compiler did not catch this?

@siddontang
Copy link
Collaborator

Hi @gdey , I guess if we don't register slave, we can still sync binlog from mysql master.
Maybe we can remove register slave later?

@gdey gdey closed this Jan 22, 2016
@gdey
Copy link
Contributor Author

gdey commented Jan 22, 2016

I'm going to close this and reopen it. Goofed in my repo. And started committing to master, instead of a feature branch. I'm not sure what you are asking with the second comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants