Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer committed Jul 29, 2019
1 parent fde4349 commit 0c9d63f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (r *remoteBinlogReader) generateStreamer(pos mysql.Position) (streamer.Stre
}()
if r.EnableGTID {
// NOTE: our (per-table based) checkpoint does not support GTID yet
return nil, errors.New("[syncer] not support GTID mode yet")
return nil, errors.New("don't support open streamer with GTID mode")
}

streamer, err := r.reader.StartSync(pos)
Expand Down Expand Up @@ -2046,14 +2046,14 @@ func (s *Syncer) reopenWithRetry(cfg replication.BinlogSyncerConfig) error {

func (s *Syncer) reopen(cfg replication.BinlogSyncerConfig) (streamer.Streamer, error) {
if s.streamerProducer != nil {
switch s.streamerProducer.(type) {
switch r := s.streamerProducer.(type) {
case *remoteBinlogReader:
err := s.closeBinlogSyncer(s.streamerProducer.(*remoteBinlogReader).reader)
err := s.closeBinlogSyncer(r.reader)
if err != nil {
return nil, errors.Trace(err)
}
case *localBinlogReader:
return nil, errors.New("[syncer] not support local relay reader reopen currently")
default:
return nil, errors.New("don't support reopen local relay reader currently")
}
}
// TODO: refactor to support relay
Expand Down

0 comments on commit 0c9d63f

Please sign in to comment.