Kaynağa Gözat

fix:redis问题

Roc 10 ay önce
ebeveyn
işleme
c0d0563a6f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      services/binlog/binlog.go

+ 1 - 1
services/binlog/binlog.go

@@ -169,7 +169,7 @@ func getBinlogNamePosition() (fileName string, position uint32, err error) {
 	// 优先从redis获取
 	fileName = global.Rc.GetStr(utils.CACHE_MYSQL_MASTER_FILENAME)
 	position64, err := global.Rc.GetUInt64(utils.CACHE_MYSQL_MASTER_POSITION)
-	if err != nil && err.Error() != utils.RedisNoKeyErr {
+	if err != nil {
 		if err.Error() != utils.RedisNoKeyErr {
 			panic("mysql binlog position is not found,err:" + err.Error())
 			return