Fix more galera test configurations

Some tests used galera options that aren't in 2.0 which caused the tests
to fail.

Also added an upper limit to some tests to reduce excessive execution
times.
This commit is contained in:
Markus Mäkelä
2017-05-30 11:48:11 +03:00
parent cca25376eb
commit a667ad90e5
5 changed files with 6 additions and 5 deletions

View File

@ -25,6 +25,7 @@ TestConnections * Test ;
int exit_flag;
int master = 0;
int i_trans = 0;
const int trans_max = 100;
int failed_transaction_num = 0;
/** The amount of rows each transaction inserts */
@ -294,7 +295,7 @@ void *transaction_thread( void *ptr )
Test->add_result(mysql_errno(conn), "Error connecting to Binlog router, error: %s\n", mysql_error(conn));
create_t1(conn);
while ((exit_flag == 0))
while ((exit_flag == 0) && i_trans < trans_max)
{
Test->tprintf("Transaction %d\n", i_trans);
trans_result = transaction(conn, i_trans);