summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-06-23 13:03:04 +0300
committerunknown <monty@narttu.mysql.fi>2003-06-23 13:03:04 +0300
commit616f46df415783c35b4c3d5d8352fd1f01faf554 (patch)
treed1ec90937c357c7ab67030069f02e5effece3e99 /sql
parentf5fba553259def57df9716d968600fd4f8ae31f9 (diff)
downloadmariadb-git-616f46df415783c35b4c3d5d8352fd1f01faf554.tar.gz
Added analyze as alias for optimize
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_innodb.cc6
-rw-r--r--sql/ha_innodb.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index fd030fff091..72267f2426c 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -3847,6 +3847,12 @@ ha_innobase::analyze(
return(0);
}
+
+int ha_innobase::optimize(THD* thd, HA_CHECK_OPT* check_opt)
+{
+ return ha_innobase::analyze(thd,check_opt);
+}
+
/***********************************************************************
Tries to check that an InnoDB table is not corrupted. If corruption is
noticed, prints to stderr information about it. In case of corruption
diff --git a/sql/ha_innodb.h b/sql/ha_innodb.h
index 1a9b1b16c64..3f354a2fa11 100644
--- a/sql/ha_innodb.h
+++ b/sql/ha_innodb.h
@@ -153,6 +153,7 @@ class ha_innobase: public handler
void position(const byte *record);
void info(uint);
int analyze(THD* thd,HA_CHECK_OPT* check_opt);
+ int optimize(THD* thd,HA_CHECK_OPT* check_opt);
int extra(enum ha_extra_function operation);
int reset(void);
int external_lock(THD *thd, int lock_type);