Skip to content

Commit

Permalink
Remove readOnly option for mysql (selectdb#215)
Browse files Browse the repository at this point in the history
to support tidb
  • Loading branch information
w41ter authored Nov 4, 2024
1 parent aaac737 commit d4ccf35
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/storage/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ func (s *MysqlDB) RefreshSyncer(hostInfo string, lastStamp int64) (int64, error)
func (s *MysqlDB) GetStampAndJobs(hostInfo string) (int64, []string, error) {
txn, err := s.db.BeginTx(context.Background(), &sql.TxOptions{
Isolation: sql.LevelRepeatableRead,
ReadOnly: true,
})
if err != nil {
return -1, nil, xerror.Wrapf(err, xerror.DB, "mysql: begin IMMEDIATE transaction failed.")
Expand Down

0 comments on commit d4ccf35

Please sign in to comment.