Comment 4 for bug 1266837

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

>Probably, at least in the case where the grastate is missing, because that’s the only way to get a GTID in that case ( unless it’s >an xtrabackup with —galera-info).

Yes, though you can also do mysqld --user=mysql --wsrep-recover to achieve the same. Nevertheless, mysqld_safe can also be made to do this.

It is when wsrep-recover is not given explicitly that heuristic is used to skip or run it whenever needed.

>I would have preferred that a node could start, recover a GTID, *and* that —wsrep-start-position would actually *accept* it >when there was no grastate.dat. Otherwise, I think this is fine.

The problem here is that even if you assign anything to wsrep-start-position without a grastate it is not used. So, there is no point in recovering it here. The issue with wsrep-start-position without grastate is a galera one (and there is a separate bug for this already).