fix mysql master slave exchange bug