diff --git a/test/tap/tests/test_binlog_fast_forward-t.cpp b/test/tap/tests/test_binlog_fast_forward-t.cpp index 7ef315cf9e..6f9c98befb 100644 --- a/test/tap/tests/test_binlog_fast_forward-t.cpp +++ b/test/tap/tests/test_binlog_fast_forward-t.cpp @@ -153,6 +153,16 @@ int main(int argc, char** argv) { __FILE__, __LINE__, mysql_error(mysqladmin)); return exit_status(); } + + const std::vector query_rules = { "INSERT OR IGNORE INTO mysql_query_rules (rule_id,active,match_digest,destination_hostgroup,multiplex,apply) VALUES\ + (-1,1,'^(SELECT @rpl_semi_sync_slave=\\?.*|SET @rpl_semi_sync_slave=\\?.*)$',0,0,1)", + "LOAD MYSQL QUERY RULES TO RUNTIME" }; + + for (const auto& query : query_rules) { + diag("Running on Admin: %s", query.c_str()); + MYSQL_QUERY(mysqladmin, query.c_str()); + } + // we now test various combination setup_replication(11, false, false, repl_queries_set1); setup_replication(12, true, false, repl_queries_set1);