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
51d940bb
Commit
51d940bb
authored
Jul 24, 2002
by
serg@sergbook.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
parents
1f5276d3
e74ba054
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
myisam/mi_create.c
myisam/mi_create.c
+6
-3
No files found.
myisam/mi_create.c
View file @
51d940bb
...
...
@@ -228,7 +228,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
if
(
uniques
)
{
max_key_block_length
=
myisam_block_size
;
max_key_length
=
MI_UNIQUE_HASH_LENGTH
;
max_key_length
=
MI_UNIQUE_HASH_LENGTH
;
}
for
(
i
=
0
,
keydef
=
keydefs
;
i
<
keys
;
i
++
,
keydef
++
)
...
...
@@ -396,6 +396,9 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
uniquedef
->
key
=
keys
+
i
;
unique_key_parts
+=
uniquedef
->
keysegs
;
share
.
state
.
key_root
[
keys
+
i
]
=
HA_OFFSET_ERROR
;
tot_length
+=
(
max_rows
/
(
ulong
)
(((
uint
)
myisam_block_size
-
5
)
/
((
MI_UNIQUE_HASH_LENGTH
+
pointer
)
*
2
)))
*
(
ulong
)
myisam_block_size
;
}
keys
+=
uniques
;
/* Each unique has 1 key */
key_segs
+=
uniques
;
/* Each unique has 1 key seg */
...
...
@@ -579,8 +582,8 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
tmp_keydef
.
block_length
=
myisam_block_size
;
tmp_keydef
.
keylength
=
MI_UNIQUE_HASH_LENGTH
+
pointer
;
tmp_keydef
.
minlength
=
tmp_keydef
.
maxlength
=
tmp_keydef
.
keylength
;
tmp_keyseg
.
type
=
MI_UNIQUE_HASH_TYPE
;
tmp_keyseg
.
length
=
MI_UNIQUE_HASH_LENGTH
;
tmp_keyseg
.
type
=
MI_UNIQUE_HASH_TYPE
;
tmp_keyseg
.
length
=
MI_UNIQUE_HASH_LENGTH
;
tmp_keyseg
.
start
=
offset
;
offset
+=
MI_UNIQUE_HASH_LENGTH
;
if
(
mi_keydef_write
(
file
,
&
tmp_keydef
)
||
...
...
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