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
1fb8c31e
Commit
1fb8c31e
authored
Aug 26, 2003
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.0/
into serg.mylan:/usr/home/serg/Abk/mysql-4.0
parents
ff6bc096
f7f48719
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
myisam/mi_check.c
myisam/mi_check.c
+4
-1
No files found.
myisam/mi_check.c
View file @
1fb8c31e
...
...
@@ -36,7 +36,7 @@
/* Functions defined in this file */
static
int
check_k_link
(
MI_CHECK
*
param
,
MI_INFO
*
info
,
uint
nr
);
static
int
chk_index
(
MI_CHECK
*
param
,
MI_INFO
*
info
,
MI_KEYDEF
*
keyinfo
,
static
int
chk_index
(
MI_CHECK
*
param
,
MI_INFO
*
info
,
MI_KEYDEF
*
keyinfo
,
my_off_t
page
,
uchar
*
buff
,
ha_rows
*
keys
,
ha_checksum
*
key_checksum
,
uint
level
);
static
uint
isam_key_length
(
MI_INFO
*
info
,
MI_KEYDEF
*
keyinfo
);
...
...
@@ -3686,6 +3686,9 @@ void update_key_parts(MI_KEYDEF *keyinfo, ulong *rec_per_key_part,
tmp
=
records
;
else
tmp
=
(
records
+
(
count
+
1
)
/
2
)
/
(
count
+
1
);
/* for some weird keys (e.g. FULLTEXT) tmp can be <1 here.
let's ensure it is not */
set_if_bigger
(
tmp
,
1
);
if
(
tmp
>=
(
ulonglong
)
~
(
ulong
)
0
)
tmp
=
(
ulonglong
)
~
(
ulong
)
0
;
*
rec_per_key_part
=
(
ulong
)
tmp
;
...
...
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