Skip to content

Commit d45e2f4

Browse files
author
Staale Smedseng
committed
Bug #41580 opt_threads option is not used anywhere at all
Option opt_threads is deprecated in 5.1, and a warning is printed when used. Will remove in 6.0.
1 parent 6fb2ba1 commit d45e2f4

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

sql-bench/bench-init.pl.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $opt_machine=""; $opt_suffix="";
4747
$opt_create_options=undef;
4848
$opt_optimization="None";
4949
$opt_hw="";
50-
$opt_threads=5;
50+
$opt_threads=-1;
5151

5252
if (!defined($opt_time_limit))
5353
{
@@ -68,6 +68,11 @@ $limits=merge_limits($server,$opt_cmp);
6868
$date=date();
6969
@estimated=(0.0,0.0,0.0); # For estimated time support
7070

71+
if ($opt_threads != -1)
72+
{
73+
print "WARNING: Option --threads is deprecated and has no effect\n"
74+
}
75+
7176
if ($opt_hires)
7277
{
7378
eval "use Time::HiRes;";
@@ -560,8 +565,8 @@ All benchmarks takes the following options:
560565
Inform test suite that we are generate random inital values for sequence of
561566
test executions. It should be used for imitation of real conditions.
562567
563-
--threads=# (Default 5)
564-
Number of threads for multi-user benchmarks.
568+
--threads=# **DEPRECATED**
569+
This option has no effect, and will be removed in a future version.
565570
566571
--tcpip
567572
Inform test suite that we are using TCP/IP to connect to the server. In

0 commit comments

Comments
 (0)