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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user