Sfoglia il codice sorgente

fix:添加记录binlog的位置

Roc 1 anno fa
parent
commit
969b725f1f
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      services/binlog/binlog.go

+ 2 - 0
services/binlog/binlog.go

@@ -154,6 +154,8 @@ func ListenMysql() {
 		return
 	}
 
+	global.FILE_LOG.Debug("记录上一次启动时的fileName:", fileName, ";position:", position)
+
 	binlogHandler := &MyEventHandler{}
 	binlogHandler.SetBinlogFileName(fileName, position)
 	c.SetEventHandler(binlogHandler)