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
9f92688b
Commit
9f92688b
authored
Sep 30, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made innodb_autoextend_increment accessible as a global variable.
parent
07700678
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
sql/ha_innodb.cc
sql/ha_innodb.cc
+1
-2
sql/ha_innodb.h
sql/ha_innodb.h
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+5
-5
sql/set_var.cc
sql/set_var.cc
+4
-0
No files found.
sql/ha_innodb.cc
View file @
9f92688b
...
...
@@ -97,7 +97,7 @@ long innobase_mirrored_log_groups, innobase_log_files_in_group,
innobase_buffer_pool_size
,
innobase_additional_mem_pool_size
,
innobase_file_io_threads
,
innobase_lock_wait_timeout
,
innobase_thread_concurrency
,
innobase_force_recovery
,
innobase_open_files
,
innobase_auto_extend_increment
;
innobase_open_files
;
/* The default values for the following char* start-up parameters
are determined in innobase_init below: */
...
...
@@ -963,7 +963,6 @@ innobase_init(void)
srv_locks_unsafe_for_binlog
=
(
ibool
)
innobase_locks_unsafe_for_binlog
;
srv_max_n_open_files
=
(
ulint
)
innobase_open_files
;
srv_auto_extend_increment
=
(
ulint
)
innobase_auto_extend_increment
;
srv_innodb_status
=
(
ibool
)
innobase_create_status_file
;
srv_print_verbose_log
=
mysql_embedded
?
0
:
1
;
...
...
sql/ha_innodb.h
View file @
9f92688b
...
...
@@ -183,7 +183,6 @@ extern long innobase_buffer_pool_awe_mem_mb;
extern
long
innobase_file_io_threads
,
innobase_lock_wait_timeout
;
extern
long
innobase_force_recovery
,
innobase_thread_concurrency
;
extern
long
innobase_open_files
;
extern
long
innobase_auto_extend_increment
;
extern
char
*
innobase_data_home_dir
,
*
innobase_data_file_path
;
extern
char
*
innobase_log_group_home_dir
,
*
innobase_log_arch_dir
;
extern
char
*
innobase_unix_file_flush_method
;
...
...
@@ -194,6 +193,7 @@ extern my_bool innobase_log_archive,
innobase_create_status_file
;
extern
"C"
{
extern
ulong
srv_max_buf_pool_modified_pct
;
extern
ulong
srv_auto_extend_increment
;
}
extern
TYPELIB
innobase_lock_typelib
;
...
...
sql/mysqld.cc
View file @
9f92688b
...
...
@@ -4712,6 +4712,11 @@ replicating a LOAD DATA INFILE command.",
(
gptr
*
)
&
innobase_additional_mem_pool_size
,
(
gptr
*
)
&
innobase_additional_mem_pool_size
,
0
,
GET_LONG
,
REQUIRED_ARG
,
1
*
1024
*
1024L
,
512
*
1024L
,
~
0L
,
0
,
1024
,
0
},
{
"innodb_autoextend_increment"
,
OPT_INNODB_AUTOEXTEND_INCREMENT
,
"Data file autoextend increment in megabytes"
,
(
gptr
*
)
&
srv_auto_extend_increment
,
(
gptr
*
)
&
srv_auto_extend_increment
,
0
,
GET_LONG
,
REQUIRED_ARG
,
8L
,
1L
,
~
0L
,
0
,
1L
,
0
},
{
"innodb_buffer_pool_awe_mem_mb"
,
OPT_INNODB_BUFFER_POOL_AWE_MEM_MB
,
"If Windows AWE is used, the size of InnoDB buffer pool allocated from the AWE memory."
,
(
gptr
*
)
&
innobase_buffer_pool_awe_mem_mb
,
(
gptr
*
)
&
innobase_buffer_pool_awe_mem_mb
,
0
,
...
...
@@ -4753,11 +4758,6 @@ replicating a LOAD DATA INFILE command.",
"How many files at the maximum InnoDB keeps open at the same time."
,
(
gptr
*
)
&
innobase_open_files
,
(
gptr
*
)
&
innobase_open_files
,
0
,
GET_LONG
,
REQUIRED_ARG
,
300L
,
10L
,
~
0L
,
0
,
1L
,
0
},
{
"innodb_autoextend_increment"
,
OPT_INNODB_AUTOEXTEND_INCREMENT
,
"Data file autoextend increment in megabytes"
,
(
gptr
*
)
&
innobase_auto_extend_increment
,
(
gptr
*
)
&
innobase_auto_extend_increment
,
0
,
GET_LONG
,
REQUIRED_ARG
,
8L
,
1L
,
~
0L
,
0
,
1L
,
0
},
#ifdef HAVE_REPLICATION
/*
Disabled for the 4.1.3 release. Disabling just this paragraph of code is
...
...
sql/set_var.cc
View file @
9f92688b
...
...
@@ -351,6 +351,8 @@ sys_var_thd_ulong sys_net_wait_timeout("wait_timeout",
#ifdef HAVE_INNOBASE_DB
sys_var_long_ptr
sys_innodb_max_dirty_pages_pct
(
"innodb_max_dirty_pages_pct"
,
&
srv_max_buf_pool_modified_pct
);
sys_var_long_ptr
sys_innodb_autoextend_increment
(
"innodb_autoextend_increment"
,
&
srv_auto_extend_increment
);
#endif
/* Time/date/datetime formats */
...
...
@@ -601,6 +603,7 @@ sys_var *sys_variables[]=
&
sys_os
,
#ifdef HAVE_INNOBASE_DB
&
sys_innodb_max_dirty_pages_pct
,
&
sys_innodb_autoextend_increment
,
#endif
&
sys_unique_checks
,
&
sys_warning_count
...
...
@@ -674,6 +677,7 @@ struct show_var_st init_vars[]= {
{
"init_slave"
,
(
char
*
)
&
sys_init_slave
,
SHOW_SYS
},
#ifdef HAVE_INNOBASE_DB
{
"innodb_additional_mem_pool_size"
,
(
char
*
)
&
innobase_additional_mem_pool_size
,
SHOW_LONG
},
{
sys_innodb_autoextend_increment
.
name
,
(
char
*
)
&
sys_innodb_autoextend_increment
,
SHOW_SYS
},
{
"innodb_buffer_pool_awe_mem_mb"
,
(
char
*
)
&
innobase_buffer_pool_awe_mem_mb
,
SHOW_LONG
},
{
"innodb_buffer_pool_size"
,
(
char
*
)
&
innobase_buffer_pool_size
,
SHOW_LONG
},
{
"innodb_data_file_path"
,
(
char
*
)
&
innobase_data_file_path
,
SHOW_CHAR_PTR
},
...
...
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