fixes #44637 @1h added --set-gtid-purged when it is needed