Skip to content

Commit 9fa7373

Browse files
committed
Update example about GTID
1 parent 4780f53 commit 9fa7373

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ syncer := replication.NewBinlogSyncer(cfg)
5858
streamer, _ := 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

6566
for {
6667
ev, _ := streamer.GetEvent(context.Background())

0 commit comments

Comments
 (0)