Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ec15459a
Commit
ec15459a
authored
Apr 09, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make session max_delayed_threads to be settable only to 0 or global value
parent
e51447b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
sql/set_var.cc
sql/set_var.cc
+19
-2
No files found.
sql/set_var.cc
View file @
ec15459a
...
@@ -101,6 +101,7 @@ static void fix_myisam_max_sort_file_size(THD *thd, enum_var_type type);
...
@@ -101,6 +101,7 @@ static void fix_myisam_max_sort_file_size(THD *thd, enum_var_type type);
static
void
fix_max_binlog_size
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_max_binlog_size
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_max_relay_log_size
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_max_relay_log_size
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_max_connections
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_max_connections
(
THD
*
thd
,
enum_var_type
type
);
static
int
check_max_delayed_threads
(
THD
*
thd
,
set_var
*
var
);
static
void
fix_thd_mem_root
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_thd_mem_root
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_trans_mem_root
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_trans_mem_root
(
THD
*
thd
,
enum_var_type
type
);
static
KEY_CACHE
*
create_key_cache
(
const
char
*
name
,
uint
length
);
static
KEY_CACHE
*
create_key_cache
(
const
char
*
name
,
uint
length
);
...
@@ -201,10 +202,13 @@ sys_var_long_ptr sys_max_connections("max_connections",
...
@@ -201,10 +202,13 @@ sys_var_long_ptr sys_max_connections("max_connections",
sys_var_long_ptr
sys_max_connect_errors
(
"max_connect_errors"
,
sys_var_long_ptr
sys_max_connect_errors
(
"max_connect_errors"
,
&
max_connect_errors
);
&
max_connect_errors
);
sys_var_thd_ulong
sys_max_insert_delayed_threads
(
"max_insert_delayed_threads"
,
sys_var_thd_ulong
sys_max_insert_delayed_threads
(
"max_insert_delayed_threads"
,
&
SV
::
max_insert_delayed_threads
);
&
SV
::
max_insert_delayed_threads
,
check_max_delayed_threads
,
fix_max_connections
);
sys_var_thd_ulong
sys_max_delayed_threads
(
"max_delayed_threads"
,
sys_var_thd_ulong
sys_max_delayed_threads
(
"max_delayed_threads"
,
&
SV
::
max_insert_delayed_threads
,
&
SV
::
max_insert_delayed_threads
,
0
,
fix_max_connections
);
check_max_delayed_threads
,
fix_max_connections
);
sys_var_thd_ulong
sys_max_error_count
(
"max_error_count"
,
sys_var_thd_ulong
sys_max_error_count
(
"max_error_count"
,
&
SV
::
max_error_count
);
&
SV
::
max_error_count
);
sys_var_thd_ulong
sys_max_heap_table_size
(
"max_heap_table_size"
,
sys_var_thd_ulong
sys_max_heap_table_size
(
"max_heap_table_size"
,
...
@@ -1084,6 +1088,19 @@ static void fix_max_relay_log_size(THD *thd, enum_var_type type)
...
@@ -1084,6 +1088,19 @@ static void fix_max_relay_log_size(THD *thd, enum_var_type type)
}
}
static
int
check_max_delayed_threads
(
THD
*
thd
,
set_var
*
var
)
{
int
val
=
var
->
value
->
val_int
();
if
(
var
->
type
!=
OPT_GLOBAL
&&
val
!=
0
&&
val
!=
global_system_variables
.
max_insert_delayed_threads
)
{
char
buf
[
64
];
my_error
(
ER_WRONG_VALUE_FOR_VAR
,
MYF
(
0
),
var
->
var
->
name
,
llstr
(
val
,
buf
));
return
1
;
}
return
0
;
}
static
void
fix_max_connections
(
THD
*
thd
,
enum_var_type
type
)
static
void
fix_max_connections
(
THD
*
thd
,
enum_var_type
type
)
{
{
resize_thr_alarm
(
max_connections
+
resize_thr_alarm
(
max_connections
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment