fixing binlog syncer double-close()

This commit is contained in:
Shlomi Noach 2017-03-27 08:33:06 +03:00
parent f3fb0ea24a
commit 7a3912da80

View File

@ -160,6 +160,10 @@ func (this *GoMySQLReader) StreamEvents(canStopStreaming func() bool, entriesCha
}
func (this *GoMySQLReader) Close() error {
this.binlogSyncer.Close()
// Historically there was a:
// this.binlogSyncer.Close()
// here. A new go-mysql version closes the binlog syncer connection independently.
// I will go against the sacred rules of comments and just leave this here.
// This is the year 2017. Let's see what year these comments get deleted.
return nil
}