Add statement timeout to mxs1585

Timing out the statements and adding a LIMIT clause to the DELETE
statement should rule out backend server related problems. If the test
still times out, the problem is most likely in MaxScale.
This commit is contained in:
Markus Mäkelä
2018-03-09 17:04:52 +02:00
parent 5a62adc63e
commit b8bf0e4ba5

View File

@ -20,9 +20,10 @@ void* query_thr(void* data)
while (running)
{
if (mysql_query(mysql, "SET sql_log_bin = 0") ||
if (mysql_query(mysql, "SET max_statement_time = 30") ||
mysql_query(mysql, "SET sql_log_bin = 0") ||
mysql_query(mysql, "INSERT INTO test.mxs1585 VALUES (1)") ||
mysql_query(mysql, "DELETE FROM test.mxs1585"))
mysql_query(mysql, "DELETE FROM test.mxs1585 LIMIT 100"))
{
break;
}