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
48d49976
Commit
48d49976
authored
Oct 16, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge
sql/set_var.cc: SCCS merged
parents
aff45e1b
0b45b5c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
sql/set_var.cc
sql/set_var.cc
+7
-5
No files found.
sql/set_var.cc
View file @
48d49976
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
#include "slave.h"
#include "slave.h"
#include "sql_acl.h"
#include "sql_acl.h"
#include <my_getopt.h>
#include <my_getopt.h>
#include <thr_alarm.h>
#include <myisam.h>
#include <myisam.h>
#ifdef HAVE_BERKELEY_DB
#ifdef HAVE_BERKELEY_DB
#include "ha_berkeley.h"
#include "ha_berkeley.h"
...
@@ -168,7 +169,8 @@ sys_var_long_ptr sys_max_connections("max_connections",
...
@@ -168,7 +169,8 @@ 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_long_ptr
sys_max_delayed_threads
(
"max_delayed_threads"
,
sys_var_long_ptr
sys_max_delayed_threads
(
"max_delayed_threads"
,
&
max_insert_delayed_threads
);
&
max_insert_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"
,
...
@@ -884,13 +886,13 @@ static void fix_max_relay_log_size(THD *thd, enum_var_type type)
...
@@ -884,13 +886,13 @@ static void fix_max_relay_log_size(THD *thd, enum_var_type type)
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
#include <thr_alarm.h>
static
void
static
void
fix_max_connections
(
THD
*
thd
,
enum_var_type
type
)
fix_max_connections
(
THD
*
thd
,
enum_var_type
type
)
{
{
resize_thr_alarm
(
max_connections
);
resize_thr_alarm
(
max_connections
+
max_insert_delayed_threads
+
10
);
}
}
bool
sys_var_long_ptr
::
update
(
THD
*
thd
,
set_var
*
var
)
bool
sys_var_long_ptr
::
update
(
THD
*
thd
,
set_var
*
var
)
{
{
ulonglong
tmp
=
var
->
value
->
val_int
();
ulonglong
tmp
=
var
->
value
->
val_int
();
...
...
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