Fix hanging of mxs1585

The test appears to hang when the `SET sql_log_bin = 0` statement is
executed. Removing this seems to fix it and is OK as that's not what the
test aims to check.
This commit is contained in:
Markus Mäkelä
2018-03-27 11:29:38 +03:00
parent 933a74a418
commit de768469b9

View File

@ -20,9 +20,8 @@ void* query_thr(void* data)
while (running) while (running)
{ {
if (mysql_query(mysql, "SET sql_log_bin = 0") || if (mysql_query(mysql, "INSERT INTO test.mxs1585 VALUES (1)") ||
mysql_query(mysql, "INSERT INTO test.mxs1585 VALUES (1)") || mysql_query(mysql, "DELETE FROM test.mxs1585 LIMIT 100"))
mysql_query(mysql, "DELETE FROM test.mxs1585"))
{ {
break; break;
} }
@ -66,6 +65,7 @@ int main(int argc, char** argv)
for (auto& a: threads) for (auto& a: threads)
{ {
test.set_timeout(60);
pthread_join(a, NULL); pthread_join(a, NULL);
} }