diff options
author | unknown <marko@hundin.mysql.fi> | 2004-09-16 19:09:38 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-09-16 19:09:38 +0300 |
commit | 38779aa81c1d5038546eff18a112698f27dd1698 (patch) | |
tree | 97d174d386bd987f87de5c11b2013bb34234669d | |
parent | ddb972f7755b998326118595005f6bc617e7b2d2 (diff) | |
parent | ad714c149b8e3c01d251a8698e0fd95aa7e89ae8 (diff) | |
download | mariadb-git-38779aa81c1d5038546eff18a112698f27dd1698.tar.gz |
Merge marko@build.mysql.com:/home/bk/mysql-4.1
into hundin.mysql.fi:/home/marko/j/mysql-4.1
sql/ha_innodb.cc:
Auto merged
sql/ha_innodb.h:
Auto merged
sql/mysqld.cc:
Auto merged
-rw-r--r-- | innobase/include/srv0srv.h | 4 | ||||
-rw-r--r-- | innobase/srv/srv0srv.c | 3 | ||||
-rw-r--r-- | sql/ha_innodb.cc | 3 | ||||
-rw-r--r-- | sql/ha_innodb.h | 1 | ||||
-rw-r--r-- | sql/mysqld.cc | 6 |
5 files changed, 15 insertions, 2 deletions
diff --git a/innobase/include/srv0srv.h b/innobase/include/srv0srv.h index 2e42c2f5036..a5508b23a5c 100644 --- a/innobase/include/srv0srv.h +++ b/innobase/include/srv0srv.h @@ -24,7 +24,8 @@ extern os_event_t srv_lock_timeout_thread_event; /* If the last data file is auto-extended, we add this many pages to it at a time */ -#define SRV_AUTO_EXTEND_INCREMENT (8 * ((1024 * 1024) / UNIV_PAGE_SIZE)) +#define SRV_AUTO_EXTEND_INCREMENT \ + (srv_auto_extend_increment * ((1024 * 1024) / UNIV_PAGE_SIZE)) /* This is set to TRUE if the MySQL user has set it in MySQL */ extern ibool srv_lower_case_table_names; @@ -51,6 +52,7 @@ extern ulint* srv_data_file_is_raw_partition; extern ibool srv_auto_extend_last_data_file; extern ulint srv_last_file_size_max; +extern ulint srv_auto_extend_increment; extern ibool srv_created_new_raw; diff --git a/innobase/srv/srv0srv.c b/innobase/srv/srv0srv.c index 389cd5b779d..9b96d610f28 100644 --- a/innobase/srv/srv0srv.c +++ b/innobase/srv/srv0srv.c @@ -92,6 +92,9 @@ ulint srv_last_file_size_max = 0; /* if != 0, this tells the max size auto-extending may increase the last data file size */ +ulint srv_auto_extend_increment = 8; /* If the last data file is + auto-extended, we add this + many pages to it at a time */ ulint* srv_data_file_is_raw_partition = NULL; /* If the following is TRUE we do not allow inserts etc. This protects diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index a9a8764c941..bf1be6f5d7e 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -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_open_files, innobase_auto_extend_increment; /* The default values for the following char* start-up parameters are determined in innobase_init below: */ @@ -963,6 +963,7 @@ 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; diff --git a/sql/ha_innodb.h b/sql/ha_innodb.h index fa6c8a90d21..0ef5f3ddffe 100644 --- a/sql/ha_innodb.h +++ b/sql/ha_innodb.h @@ -183,6 +183,7 @@ 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; diff --git a/sql/mysqld.cc b/sql/mysqld.cc index ce64d2a39da..30722d56b2a 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -4005,6 +4005,7 @@ enum options_mysqld OPT_INNODB_STATUS_FILE, OPT_INNODB_MAX_DIRTY_PAGES_PCT, OPT_INNODB_OPEN_FILES, + OPT_INNODB_AUTOEXTEND_INCREMENT, OPT_BDB_CACHE_SIZE, OPT_BDB_LOG_BUFFER_SIZE, OPT_BDB_MAX_LOCK, @@ -4752,6 +4753,11 @@ 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 |