On Wednesday, May 1, 2013 at 22:51 , Kristian Nielsen wrote:
Giuseppe Maxia <g.maxia@gmail.com> writes:The only documentation I found is the worklog.Yes, docs will come of course, but they are not written yet. As Pavelmentioned, there are some changes compared to original design, that were doneas a result of QA to fix some potential issues with the user experience.Without docs at hand, I tried something:slave1 [localhost] {msandbox} ((none)) > CHANGE MASTER TO master_gtid_pos='';ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'master_gtid_pos=''' at line 1slave1 [localhost] {msandbox} ((none)) > CHANGE MASTER TO master_gtid_pos=auto;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'master_gtid_pos=auto' at line 1As Pavel mentioned, the syntax is now:SET GLOBAL gtid_pos="";CHANGE MASTER TO MASTER_USE_GTID=1;However, neither of the suggested syntax works with the build currently released.Strange ... can you share exact query and error message?Moreover, since the commit comment mentions multiple masters, it would benice to have some documentation that explains what to expect when using GTIDand multiple masters.If you do not want to wait for documentation, my best suggestion is to look atthe mysql-test-run test cases: rpl.rpl_gtid* and multi_source.gtid*. They arekept up-to-date with every commit so are guaranteed to show what works.In mysql-test/suite/multi_source/gtid.test there is an example which startswith the topology M1->S1,M2->S1,S1->S2.It then moves S2 one level up: M1->S1,M2->S1,M1->S2,M2->S2Finally it moves S1 down to have M1->S2,M2->S2,S2->S1So it shows the ability to have multi-level multimaster setups, and move aslave server between itself having multiple direct masters, and being asingle-master slave of a master server that is itself a slave of multiplemasters. I spent a lot of effort in the design phase figuring out how to makethis work, and it was a main motivation for the concept of domain_id.- Kristian.