File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,10 @@ syncer := replication.NewBinlogSyncer(cfg)
5858streamer , _ := syncer.StartSync (mysql.Position {binlogFile, binlogPos})
5959
6060// or you can start a gtid replication like
61+ // gtidSet, _ := mysql.ParseGTIDSet(mysql.MySQLFlavor, "de278ad0-2106-11e4-9f8e-6edd0ca20947:1-2")
6162// streamer, _ := syncer.StartSyncGTID(gtidSet)
62- // the mysql GTID set likes this "de278ad0-2106-11e4-9f8e-6edd0ca20947:1-2"
63- // the mariadb GTID set likes this "0-1-100"
63+ // the mysql GTID set is like this "de278ad0-2106-11e4-9f8e-6edd0ca20947:1-2" and uses mysql.MySQLFlavor
64+ // the mariadb GTID set is like this "0-1-100" and uses mysql.MariaDBFlavor
6465
6566for {
6667 ev , _ := streamer.GetEvent (context.Background ())
You can’t perform that action at this time.
0 commit comments