add gating for mysql master-master