summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2004-09-07 16:26:38 +0300
committerunknown <marko@hundin.mysql.fi>2004-09-07 16:26:38 +0300
commit13f8420a1c928e270865f111857c5b7bed3fdbf4 (patch)
treeaa416511899bafb5230a09583a3a23b2eb7b101f /innobase
parent5f8f320c0a3d631a218f593c674547490d2a0342 (diff)
downloadmariadb-git-13f8420a1c928e270865f111857c5b7bed3fdbf4.tar.gz
InnoDB: Add configuration option innodb_autoextend_increment
innobase/include/srv0srv.h: Add srv_auto_extend_increment and make SRV_AUTO_EXTEND_INCREMENT configureable by it innobase/srv/srv0srv.c: Add srv_auto_extend_increment sql/ha_innodb.cc: Add innobase_auto_extend_increment and srv_auto_extend_increment sql/ha_innodb.h: Add innobase_auto_extend_increment sql/mysqld.cc: Add "innodb_autoextend_increment" configuration option
Diffstat (limited to 'innobase')
-rw-r--r--innobase/include/srv0srv.h4
-rw-r--r--innobase/srv/srv0srv.c3
2 files changed, 6 insertions, 1 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