mirror of https://github.com/sipwise/mediator.git
* new function medmysql_set_session_binlog_format(medmysql_handler *mysql) that checks current binlog_format and sets it to 'statement' only if the current formed is mixed, as well as writes to the logs the current format and if the format is changed. * medmysql_handler_init() use medmysql_set_session_binlog_format(). * always stop mediator with L_CRITICAL if binlog_format cannot be changed, because with the "binlog admin" privilege there are no errors, nor warnings regardless of the current global binlog_format. * that is to address a scenario when mediator always changes binlog_format to 'statement' (because with the 'binlog admin' privilege it does not throw an error), and if the global format is 'row', it causes 'unsafe warnings' spam in mysql-error.log. Change-Id: Iaee992cf6e2bdf14095387256483b3a9f8b6f2damr26.1.1
parent
663b0e42e8
commit
30ee5096db
Loading…
Reference in new issue