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
85388703
Commit
85388703
authored
Jun 26, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed length rows should not use row checksum in MyISAM tables
Fixed bug in handling of packed MyISAM keys
parent
65600db5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
myisam/mi_create.c
myisam/mi_create.c
+4
-1
myisam/mi_search.c
myisam/mi_search.c
+1
-1
myisam/mi_statrec.c
myisam/mi_statrec.c
+1
-1
No files found.
myisam/mi_create.c
View file @
85388703
...
@@ -164,6 +164,9 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
...
@@ -164,6 +164,9 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
if
(
packed
||
(
flags
&
HA_PACK_RECORD
))
if
(
packed
||
(
flags
&
HA_PACK_RECORD
))
options
|=
HA_OPTION_PACK_RECORD
;
/* Must use packed records */
options
|=
HA_OPTION_PACK_RECORD
;
/* Must use packed records */
/* We can't use checksum with static length rows */
if
(
!
(
options
&
HA_OPTION_PACK_RECORD
))
options
&=
~
HA_OPTION_CHECKSUM
;
if
(
options
&
(
HA_OPTION_PACK_RECORD
|
HA_OPTION_COMPRESS_RECORD
))
if
(
options
&
(
HA_OPTION_PACK_RECORD
|
HA_OPTION_COMPRESS_RECORD
))
min_pack_length
+=
varchar_count
;
/* Min length to pack */
min_pack_length
+=
varchar_count
;
/* Min length to pack */
else
else
...
@@ -445,7 +448,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
...
@@ -445,7 +448,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
share
.
base
.
records
=
ci
->
max_rows
;
share
.
base
.
records
=
ci
->
max_rows
;
share
.
base
.
reloc
=
ci
->
reloc_rows
;
share
.
base
.
reloc
=
ci
->
reloc_rows
;
share
.
base
.
reclength
=
real_reclength
;
share
.
base
.
reclength
=
real_reclength
;
share
.
base
.
pack_reclength
=
reclength
+
test
(
options
&
HA_OPTION_CHECKSUM
);
;
share
.
base
.
pack_reclength
=
reclength
+
test
(
options
&
HA_OPTION_CHECKSUM
);
share
.
base
.
max_pack_length
=
pack_reclength
;
share
.
base
.
max_pack_length
=
pack_reclength
;
share
.
base
.
min_pack_length
=
min_pack_length
;
share
.
base
.
min_pack_length
=
min_pack_length
;
share
.
base
.
pack_bits
=
packed
;
share
.
base
.
pack_bits
=
packed
;
...
...
myisam/mi_search.c
View file @
85388703
...
@@ -417,7 +417,7 @@ int _mi_prefix_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page,
...
@@ -417,7 +417,7 @@ int _mi_prefix_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page,
}
}
else
if
(
len
>
cmplen
)
else
if
(
len
>
cmplen
)
{
{
if
((
my_flag
=
(
!
(
nextflag
&
SEARCH_PREFIX
)
&&
key_len_left
>
0
)))
if
((
my_flag
=
(
!
(
nextflag
&
SEARCH_PREFIX
)
||
key_len_left
>
0
)))
break
;
break
;
goto
fix_flag
;
goto
fix_flag
;
}
}
...
...
myisam/mi_statrec.c
View file @
85388703
...
@@ -73,7 +73,7 @@ int _mi_write_static_record(MI_INFO *info, const byte *record)
...
@@ -73,7 +73,7 @@ int _mi_write_static_record(MI_INFO *info, const byte *record)
bzero
((
char
*
)
temp
,
length
);
bzero
((
char
*
)
temp
,
length
);
if
(
my_pwrite
(
info
->
dfile
,
(
byte
*
)
temp
,
length
,
if
(
my_pwrite
(
info
->
dfile
,
(
byte
*
)
temp
,
length
,
info
->
state
->
data_file_length
+
info
->
state
->
data_file_length
+
info
->
s
->
base
.
pack_
reclength
,
info
->
s
->
base
.
reclength
,
info
->
s
->
write_flag
))
info
->
s
->
write_flag
))
goto
err
;
goto
err
;
}
}
...
...
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