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
6841d1af
Commit
6841d1af
authored
Nov 16, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.5 into 10.6
parents
89ab2538
ebb15f98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
storage/innobase/page/page0zip.cc
storage/innobase/page/page0zip.cc
+15
-4
No files found.
storage/innobase/page/page0zip.cc
View file @
6841d1af
...
...
@@ -3676,6 +3676,7 @@ void page_zip_write_rec(buf_block_t *block, const byte *rec,
slot
=
page_zip_dir_find
(
page_zip
,
page_offset
(
rec
));
ut_a
(
slot
);
byte
s
=
*
slot
;
/* Copy the delete mark. */
if
(
rec_get_deleted_flag
(
rec
,
TRUE
))
{
/* In delete-marked records, DB_TRX_ID must
...
...
@@ -3683,9 +3684,14 @@ void page_zip_write_rec(buf_block_t *block, const byte *rec,
On non-leaf pages, the delete-mark flag is garbage. */
ut_ad
(
!
index
->
is_primary
()
||
!
page_is_leaf
(
page
)
||
row_get_rec_trx_id
(
rec
,
index
,
offsets
));
*
slot
|=
PAGE_ZIP_DIR_SLOT_DEL
>>
8
;
s
|=
PAGE_ZIP_DIR_SLOT_DEL
>>
8
;
}
else
{
*
slot
&=
byte
(
~
(
PAGE_ZIP_DIR_SLOT_DEL
>>
8
));
s
&=
byte
(
~
(
PAGE_ZIP_DIR_SLOT_DEL
>>
8
));
}
if
(
s
!=
*
slot
)
{
*
slot
=
s
;
mtr
->
zmemcpy
(
*
block
,
slot
-
page_zip
->
data
,
1
);
}
ut_ad
(
rec_get_start
((
rec_t
*
)
rec
,
offsets
)
>=
page
+
PAGE_ZIP_START
);
...
...
@@ -4249,8 +4255,13 @@ page_zip_dir_insert(
}
/* Write the entry for the inserted record.
The "owned" and "deleted" flags must be zero. */
mach_write_to_2
(
slot_rec
-
PAGE_ZIP_DIR_SLOT_SIZE
,
page_offset
(
rec
));
The "owned" flag must be zero. */
uint16_t
offs
=
page_offset
(
rec
);
if
(
rec_get_deleted_flag
(
rec
,
true
))
{
offs
|=
PAGE_ZIP_DIR_SLOT_DEL
;
}
mach_write_to_2
(
slot_rec
-
PAGE_ZIP_DIR_SLOT_SIZE
,
offs
);
mtr
->
zmemcpy
(
*
cursor
->
block
,
slot_rec
-
page_zip
->
data
-
PAGE_ZIP_DIR_SLOT_SIZE
,
PAGE_ZIP_DIR_SLOT_SIZE
);
}
...
...
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