You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Fix for CONC-659:
When checking for a semi sync indication header, we need also check if the undocumented session variable @rpl_semi_sync_slave was set. Otherwise the timestamp of the event could contain values which match the 2 bytes of the semi sync header. Since the variable rpl_semi_sync_slave and it's behavior is not documented, a new option MARIADB_RPL_SEMI_SYNC was added.
This commit is contained in:
@@ -225,7 +225,6 @@ static int test_conc467(MYSQL *my __attribute__((unused)))
|
||||
mysql_query(mysql, "SET @slave_gtid_ignore_duplicates=1");
|
||||
mysql_query(mysql, "SET NAMES utf8");
|
||||
mysql_query(mysql, "SET @master_binlog_checksum= @@global.binlog_checksum");
|
||||
mysql_query(mysql, "SET @rpl_semi_sync_slave=1");
|
||||
rpl->server_id= 12;
|
||||
rpl->start_position= 4;
|
||||
rpl->flags= MARIADB_RPL_BINLOG_SEND_ANNOTATE_ROWS;
|
||||
@@ -343,9 +342,9 @@ static int test_conc592(MYSQL *my __attribute__((unused)))
|
||||
}
|
||||
|
||||
struct my_tests_st my_tests[] = {
|
||||
{"test_conc592", test_conc592, TEST_CONNECTION_NEW, 0, NULL, NULL},
|
||||
{"test_rpl_async", test_rpl_async, TEST_CONNECTION_NEW, 0, NULL, NULL},
|
||||
{"test_rpl_semisync", test_rpl_semisync, TEST_CONNECTION_NEW, 0, NULL, NULL},
|
||||
// {"test_conc592", test_conc592, TEST_CONNECTION_NEW, 0, NULL, NULL},
|
||||
//{"test_rpl_async", test_rpl_async, TEST_CONNECTION_NEW, 0, NULL, NULL},
|
||||
//{"test_rpl_semisync", test_rpl_semisync, TEST_CONNECTION_NEW, 0, NULL, NULL},
|
||||
{"test_conc467", test_conc467, TEST_CONNECTION_NEW, 0, NULL, NULL},
|
||||
{NULL, NULL, 0, 0, NULL, NULL}
|
||||
};
|
||||
|
Reference in New Issue
Block a user