diff --git a/dm/pkg/binlog/common/replication.go b/dm/pkg/binlog/common/replication.go index 7e1b53c5b8c..3cd20911fa5 100644 --- a/dm/pkg/binlog/common/replication.go +++ b/dm/pkg/binlog/common/replication.go @@ -22,7 +22,7 @@ import ( var ( // MaxBinlogSyncerReconnect is the max reconnection times for binlog syncer in go-mysql. MaxBinlogSyncerReconnect = 60 - // SlaveReadTimeout is slave read binlog data timeout, ref: https://dev.mysql.com/doc/refman/8.0/en/replication-options-slave.html#sysvar_slave_net_timeout + // SlaveReadTimeout is slave read binlog data timeout, ref: https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_slave_net_timeout SlaveReadTimeout = 1 * time.Minute // MasterHeartbeatPeriod is the master server send heartbeat period, ref: `MASTER_HEARTBEAT_PERIOD` in https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html MasterHeartbeatPeriod = 30 * time.Second diff --git a/go.mod b/go.mod index 2bad111163e..487d9a3e19f 100644 --- a/go.mod +++ b/go.mod @@ -32,7 +32,7 @@ require ( github.com/gin-gonic/gin v1.9.1 github.com/glebarez/go-sqlite v1.21.2 github.com/glebarez/sqlite v1.7.0 - github.com/go-mysql-org/go-mysql v1.7.1-0.20240314115043-2199dfb0ba98 + github.com/go-mysql-org/go-mysql v1.7.1-0.20240507075657-2bd4573edde2 github.com/go-oauth2/oauth2/v4 v4.5.2 github.com/go-ozzo/ozzo-validation/v4 v4.3.0 github.com/go-sql-driver/mysql v1.7.1 diff --git a/go.sum b/go.sum index f55bd7ac828..5a0b17096a8 100644 --- a/go.sum +++ b/go.sum @@ -347,8 +347,8 @@ github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-mysql-org/go-mysql v1.7.1-0.20240314115043-2199dfb0ba98 h1:ygai+7MZSkAPhRwRraWf1EsPTgrz4U2+x3NVWzJYQys= -github.com/go-mysql-org/go-mysql v1.7.1-0.20240314115043-2199dfb0ba98/go.mod h1:kwbF156Z9Sy8amP3E1SZp7/s/0PuJj/xKaOWToQiq0Y= +github.com/go-mysql-org/go-mysql v1.7.1-0.20240507075657-2bd4573edde2 h1:DU4x9rUmzjuOnXg5hgX5kUqj1HmKzN+rU3bsIy7oWok= +github.com/go-mysql-org/go-mysql v1.7.1-0.20240507075657-2bd4573edde2/go.mod h1:kwbF156Z9Sy8amP3E1SZp7/s/0PuJj/xKaOWToQiq0Y= github.com/go-oauth2/oauth2/v4 v4.5.2 h1:CuZhD3lhGuI6aNLyUbRHXsgG2RwGRBOuCBfd4WQKqBQ= github.com/go-oauth2/oauth2/v4 v4.5.2/go.mod h1:wk/2uLImWIa9VVQDgxz99H2GDbhmfi/9/Xr+GvkSUSQ= github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=