![](https://secure.gravatar.com/avatar/99fde0c1dfd216326aae0aff30d493f1.jpg?s=120&d=mm&r=g)
14 Sep
2017
14 Sep
'17
3:25 a.m.
andrei.elkin@pp.inet.fi writes:
Then a function to discard a domain term would do:
SET @@gtid_binlog_state=gtid_discard_domain(@@gtid_binlog_state,'d')
While this time it would be new object introduced still it's of var setting semantics and might be generally useful too.
I'm not sure I understand. Would this function magically lock the binlog until the SET gtid_binlog_state completes, to solve the race? Or just a convenience for the user to not have to do the string replace operation manually? - Kristian.