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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3f9f19e3
Commit
3f9f19e3
authored
Dec 12, 2005
by
ingo@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge istruewing@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/mydev/mysql-5.0-bug10932
parents
c34595c9
8482de43
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
38 additions
and
8 deletions
+38
-8
config/ac-macros/misc.m4
config/ac-macros/misc.m4
+21
-0
configure.in
configure.in
+1
-0
include/myisam.h
include/myisam.h
+8
-5
sql/mysql_priv.h
sql/mysql_priv.h
+5
-1
sql/opt_range.cc
sql/opt_range.cc
+1
-0
sql/unireg.h
sql/unireg.h
+1
-1
tests/mysql_client_test.c
tests/mysql_client_test.c
+1
-1
No files found.
config/ac-macros/misc.m4
View file @
3f9f19e3
...
...
@@ -693,6 +693,27 @@ dnl ---------------------------------------------------------------------------
dnl END OF MYSQL_CHECK_BIG_TABLES SECTION
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
dnl Macro: MYSQL_CHECK_MAX_INDEXES
dnl Sets MAX_INDEXES
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_CHECK_MAX_INDEXES], [
AC_ARG_WITH([max-indexes],
[
--with-max-indexes=\# Sets the maximum number of indexes per table, default 64],
[max_indexes="$withval"],
[max_indexes=64])
AC_MSG_CHECKING([max indexes per table])
AC_DEFINE_UNQUOTED([MAX_INDEXES], [$max_indexes],
[Maximum number of indexes per table])
AC_MSG_RESULT([$max_indexes])
])
dnl ---------------------------------------------------------------------------
dnl END OF MYSQL_CHECK_MAX_INDEXES SECTION
dnl ---------------------------------------------------------------------------
dnl MYSQL_NEEDS_MYSYS_NEW
AC_DEFUN([MYSQL_NEEDS_MYSYS_NEW],
[AC_CACHE_CHECK([needs mysys_new helpers], mysql_use_mysys_new,
...
...
configure.in
View file @
3f9f19e3
...
...
@@ -2413,6 +2413,7 @@ AC_SUBST(readline_link)
AC_SUBST
(
readline_h_ln_cmd
)
MYSQL_CHECK_BIG_TABLES
MYSQL_CHECK_MAX_INDEXES
MYSQL_CHECK_BDB
MYSQL_CHECK_INNODB
MYSQL_CHECK_EXAMPLEDB
...
...
include/myisam.h
View file @
3f9f19e3
...
...
@@ -33,8 +33,6 @@ extern "C" {
#endif
#include "my_handler.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.
...
...
@@ -45,14 +43,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.
B
UT: MI_MAX_KEY must be <= MI_MAX_POSSIBLE_KEY
.
B
ut beware the dependency of MI_MAX_POSSIBLE_KEY_BUFF and MI_MAX_KEY_LENGTH
.
*/
#define MI_MAX_KEY
64
/* Max allowed key
s */
#define MI_MAX_KEY
_LENGTH 1000
/* Max length in byte
s */
#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 */
...
...
sql/mysql_priv.h
View file @
3f9f19e3
...
...
@@ -42,7 +42,11 @@
/* TODO convert all these three maps to Bitmap classes */
typedef
ulonglong
table_map
;
/* Used for table bits in join */
typedef
Bitmap
<
64
>
key_map
;
/* Used for finding keys */
#if MAX_INDEXES <= 64
typedef
Bitmap
<
64
>
key_map
;
/* Used for finding keys */
#else
typedef
Bitmap
<
((
MAX_INDEXES
+
7
)
/
8
*
8
)
>
key_map
;
/* Used for finding keys */
#endif
typedef
ulong
key_part_map
;
/* Used for finding key parts */
typedef
ulong
nesting_map
;
/* Used for flags of nesting constructs */
/*
...
...
sql/opt_range.cc
View file @
3f9f19e3
...
...
@@ -3172,6 +3172,7 @@ TRP_ROR_INTERSECT *get_best_covering_ror_intersect(PARAM *param,
trp
->
is_covering
=
TRUE
;
trp
->
read_cost
=
total_cost
;
trp
->
records
=
records
;
trp
->
cpk_scan
=
NULL
;
DBUG_PRINT
(
"info"
,
(
"Returning covering ROR-intersect plan: cost %g, records %lu"
,
...
...
sql/unireg.h
View file @
3f9f19e3
...
...
@@ -48,7 +48,7 @@
#define MAX_ALIAS_NAME 256
#define MAX_FIELD_NAME 34
/* Max colum name length +2 */
#define MAX_SYS_VAR_LENGTH 32
#define MAX_KEY
64
/* Max used keys */
#define MAX_KEY
MAX_INDEXES
/* Max used keys */
#define MAX_REF_PARTS 16
/* Max parts used as ref */
#define MAX_KEY_LENGTH 3072
/* max possible key */
#if SIZEOF_OFF_T > 4
...
...
tests/mysql_client_test.c
View file @
3f9f19e3
...
...
@@ -36,7 +36,7 @@
#define VER "2.1"
#define MAX_TEST_QUERY_LENGTH 300
/* MAX QUERY BUFFER LENGTH */
#define MAX_KEY
64
#define MAX_KEY
MAX_INDEXES
#define MAX_SERVER_ARGS 64
/* set default options */
...
...
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