|
296 | 296 | our $opt_check_testcases= 1; |
297 | 297 | my $opt_mark_progress; |
298 | 298 | my $opt_max_connections; |
| 299 | +my $opt_max_connect_retries; |
299 | 300 | our $opt_report_times= 0; |
300 | 301 |
|
301 | 302 | my $opt_sleep; |
@@ -1211,6 +1212,7 @@ sub command_line_setup { |
1211 | 1212 | 'stop-file=s' => \$opt_stop_file, |
1212 | 1213 | 'stop-keep-alive=i' => \$opt_stop_keep_alive, |
1213 | 1214 | 'max-connections=i' => \$opt_max_connections, |
| 1215 | + 'max-connect-retries=i' => \$opt_max_connect_retries, |
1214 | 1216 | 'report-times' => \$opt_report_times, |
1215 | 1217 | 'result-file' => \$opt_resfile, |
1216 | 1218 | 'stress=s' => \$opt_stress, |
@@ -5739,6 +5741,10 @@ ($) |
5739 | 5741 | mtr_add_arg($args, "--max-connections=%d", $opt_max_connections); |
5740 | 5742 | } |
5741 | 5743 |
|
| 5744 | + if ( $opt_max_connect_retries ) { |
| 5745 | + mtr_add_arg($args, "--max-connect-retries=%d", $opt_max_connect_retries); |
| 5746 | + } |
| 5747 | + |
5742 | 5748 | if ( $opt_embedded_server ) |
5743 | 5749 | { |
5744 | 5750 |
|
@@ -6106,6 +6112,7 @@ ($) |
6106 | 6112 | timediff With --timestamp, also print time passed since |
6107 | 6113 | *previous* test started |
6108 | 6114 | max-connections=N Max number of open connection to server in mysqltest |
| 6115 | + max-connect-retries=N Max connection attempts in mysqltest (default 500) |
6109 | 6116 | report-times Report how much time has been spent on different |
6110 | 6117 | phases of test execution. |
6111 | 6118 | stress=ARGS Run stress test, providing options to |
|
0 commit comments