summaryrefslogtreecommitdiff
path: root/include/myisam.h
diff options
context:
space:
mode:
authorunknown <ingo@mysql.com>2005-12-06 08:31:38 +0100
committerunknown <ingo@mysql.com>2005-12-06 08:31:38 +0100
commit4c2f929eb7bac7dc3dcc8464c205279110f7a975 (patch)
tree58e31f753db05022bdd822937403c4fafc125ac4 /include/myisam.h
parent002101a4c9d06d598d62d4204e9dd4cabc8621c8 (diff)
parentf77305608ee22e31cf79cce780ffc0256c32e2b6 (diff)
downloadmariadb-git-4c2f929eb7bac7dc3dcc8464c205279110f7a975.tar.gz
Merge mysql.com:/home/mydev/mysql-5.0-bug10932
into mysql.com:/home/mydev/mysql-5.1-bug10932 include/myisam.h: Auto merged mysql-test/t/disabled.def: Auto merged sql/mysql_priv.h: Auto merged sql/opt_range.cc: Auto merged sql/unireg.h: Auto merged configure.in: SCCS merged
Diffstat (limited to 'include/myisam.h')
-rw-r--r--include/myisam.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/myisam.h b/include/myisam.h
index 6c130af740e..19458e52f61 100644
--- a/include/myisam.h
+++ b/include/myisam.h
@@ -34,8 +34,6 @@ extern "C" {
#include "my_handler.h"
#include <plugin.h>
- /* defines used by myisam-funktions */
-
/*
There is a hard limit for the maximum number of keys as there are only
8 bits in the index file header for the number of keys in a table.
@@ -46,14 +44,19 @@ extern "C" {
running myisamchk compiled for 128 keys on a table with 255 keys.
*/
#define MI_MAX_POSSIBLE_KEY 255 /* For myisam_chk */
+#if MAX_INDEXES > MI_MAX_POSSIBLE_KEY
+#define MI_MAX_KEY MI_MAX_POSSIBLE_KEY /* Max allowed keys */
+#else
+#define MI_MAX_KEY MAX_INDEXES /* Max allowed keys */
+#endif
+
#define MI_MAX_POSSIBLE_KEY_BUFF (1024+6+6) /* For myisam_chk */
/*
The following defines can be increased if necessary.
- BUT: MI_MAX_KEY must be <= MI_MAX_POSSIBLE_KEY.
+ But beware the dependency of MI_MAX_POSSIBLE_KEY_BUFF and MI_MAX_KEY_LENGTH.
*/
-#define MI_MAX_KEY 64 /* Max allowed keys */
+#define MI_MAX_KEY_LENGTH 1000 /* Max length in bytes */
#define MI_MAX_KEY_SEG 16 /* Max segments for key */
-#define MI_MAX_KEY_LENGTH 1000
#define MI_MAX_KEY_BUFF (MI_MAX_KEY_LENGTH+MI_MAX_KEY_SEG*6+8+8)
#define MI_MAX_MSG_BUF 1024 /* used in CHECK TABLE, REPAIR TABLE */