From f6d82f4694b30a545ca7d9ab05dbd67fdcaba4b0 Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Fri, 5 Jan 2024 10:52:15 +0500 Subject: [PATCH] =?UTF-8?q?Added=20query=20rule=20to=20route=20'SELECT=20@?= =?UTF-8?q?rpl=5Fsemi=5Fsync=5Fslave=3D=3F'=20and=20'SET=20@rpl=5Fsemi=5Fs?= =?UTF-8?q?ync=5Fslave=3D1'=20queries=20to=20writer=20HG=20and=20disable?= =?UTF-8?q?=20multiplexing.?= --- test/tap/tests/test_binlog_fast_forward-t.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/tap/tests/test_binlog_fast_forward-t.cpp b/test/tap/tests/test_binlog_fast_forward-t.cpp index 7ef315cf9e..06cc391e89 100644 --- a/test/tap/tests/test_binlog_fast_forward-t.cpp +++ b/test/tap/tests/test_binlog_fast_forward-t.cpp @@ -109,6 +109,9 @@ int setup_replication(int server_id, bool frontend_ssl, bool backend_ssl, std::v MYSQL * mysql = mysql_init(NULL); std::vector admin_queries = {}; + admin_queries.push_back("INSERT 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)"); + admin_queries.push_back("LOAD MYSQL QUERY RULES TO RUNTIME"); admin_queries.push_back(std::string("SET mysql-have_ssl='") + std::string(frontend_ssl ? "true" : "false") + "'"); admin_queries.push_back("LOAD MYSQL VARIABLES TO RUNTIME"); admin_queries.push_back(std::string("UPDATE mysql_servers SET use_ssl=") + std::string(backend_ssl ? "1" : "0"));