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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
5ec88a30
Commit
5ec88a30
authored
Nov 04, 2005
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip:
Fix bugs found during testing.
parent
dbfea3e9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
btr/btr0btr.c
btr/btr0btr.c
+2
-1
btr/btr0cur.c
btr/btr0cur.c
+4
-2
include/page0page.ic
include/page0page.ic
+6
-1
include/page0zip.ic
include/page0zip.ic
+1
-1
No files found.
btr/btr0btr.c
View file @
5ec88a30
...
...
@@ -1101,7 +1101,8 @@ btr_root_raise_and_insert(
btr_set_min_rec_mark
(
node_ptr_rec
,
NULL
,
mtr
);
if
(
!
UNIV_UNLIKELY
(
page_zip_compress
(
page_zip
,
root
)))
{
if
(
UNIV_LIKELY_NULL
(
page_zip
)
&&
!
UNIV_UNLIKELY
(
page_zip_compress
(
page_zip
,
root
)))
{
/* The root page should only contain the
node pointer to new_page at this point.
Thus, the data should fit. */
...
...
btr/btr0cur.c
View file @
5ec88a30
...
...
@@ -1518,7 +1518,9 @@ btr_cur_update_in_place(
block
=
buf_block_align
(
rec
);
page_zip
=
buf_block_get_page_zip
(
block
);
if
(
UNIV_UNLIKELY
(
!
page_zip_alloc
(
page_zip
,
buf_block_get_frame
(
block
),
if
(
UNIV_LIKELY_NULL
(
page_zip
)
&&
UNIV_UNLIKELY
(
!
page_zip_alloc
(
page_zip
,
buf_block_get_frame
(
block
),
4
+
rec_offs_size
(
offsets
))))
{
return
(
DB_OVERFLOW
);
}
...
...
include/page0page.ic
View file @
5ec88a30
...
...
@@ -653,7 +653,12 @@ page_rec_set_next(
ut_ad(!next || ut_align_down(rec, UNIV_PAGE_SIZE)
== ut_align_down(next, UNIV_PAGE_SIZE));
if (UNIV_LIKELY(next != NULL)) {
offs = ut_align_offset(next, UNIV_PAGE_SIZE);
} else {
offs = 0;
}
if (page_rec_is_comp(rec)) {
rec_set_next_offs_new(rec, page_zip, offs);
} else {
...
...
include/page0zip.ic
View file @
5ec88a30
...
...
@@ -213,7 +213,7 @@ page_zip_write_trailer(
ut_ad(pos > PAGE_DATA);
ut_ad(pos < UNIV_PAGE_SIZE
- page_trailer_get_len(buf_
block
_align((byte*) str)));
- page_trailer_get_len(buf_
frame
_align((byte*) str)));
memcpy(page_zip->data + page_zip->size - (UNIV_PAGE_SIZE - pos),
str, length);
...
...
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