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
6c7431b2
Commit
6c7431b2
authored
Jul 06, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: page_zip_fields_encode(): Fuse fixed-length fields to a maximum
of DICT_MAX_INDEX_COL_LEN (768 bytes).
parent
d234ea1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
page/page0zip.c
page/page0zip.c
+14
-0
No files found.
page/page0zip.c
View file @
6c7431b2
...
...
@@ -381,6 +381,20 @@ page_zip_fields_encode(
col
++
;
}
else
if
(
val
)
{
/* fixed-length non-nullable field */
if
(
fixed_sum
&&
UNIV_UNLIKELY
(
fixed_sum
+
field
->
fixed_len
>
DICT_MAX_INDEX_COL_LEN
))
{
/* Write out the length of the
preceding non-nullable fields,
to avoid exceeding the maximum
length of a fixed-length column. */
buf
=
page_zip_fixed_field_encode
(
buf
,
fixed_sum
<<
1
|
1
);
fixed_sum
=
0
;
col
++
;
}
if
(
i
&&
UNIV_UNLIKELY
(
i
==
trx_id_pos
))
{
if
(
fixed_sum
)
{
/* Write out the length of any
...
...
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