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
3ff442e6
Commit
3ff442e6
authored
Mar 30, 2023
by
Yuchen Pei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
separated out changes to handle_instant_metadata() from 9501981c
parent
7bd225e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
storage/innobase/row/row0import.cc
storage/innobase/row/row0import.cc
+2
-12
No files found.
storage/innobase/row/row0import.cc
View file @
3ff442e6
...
...
@@ -3088,10 +3088,8 @@ static dberr_t handle_instant_metadata(dict_table_t *table,
}
if
(
!
cfg
.
m_missing
)
{
if
(
dberr_t
err
=
cfg
.
match_flags
(
current_thd
))
return
err
;
}
const
unsigned
zip_size
=
fil_space_t
::
zip_size
(
space_flags
);
const
unsigned
physical_size
=
zip_size
?
zip_size
:
unsigned
(
srv_page_size
);
...
...
@@ -3285,10 +3283,7 @@ static dberr_t handle_instant_metadata(dict_table_t *table,
rec_offs
*
offsets
=
rec_get_offsets
(
rec
,
index
,
nullptr
,
index
->
n_core_fields
,
ULINT_UNDEFINED
,
&
heap
);
if
(
rec_offs_any_default
(
offsets
))
{
inconsistent:
goto
incompatible
;
}
/* In fact, because we only ever append fields to the metadata
record, it is also OK to perform READ UNCOMMITTED and
...
...
@@ -3298,7 +3293,7 @@ static dberr_t handle_instant_metadata(dict_table_t *table,
ulint
(
index
->
n_fields
)
+
!!
index
->
table
->
instant
&&
!
trx_sys
.
is_registered
(
current_trx
(),
row_get_rec_trx_id
(
rec
,
index
,
offsets
)))
goto
inco
nsistent
;
goto
inco
mpatible
;
for
(
unsigned
i
=
index
->
n_core_fields
;
i
<
index
->
n_fields
;
i
++
)
{
...
...
@@ -3322,17 +3317,12 @@ static dberr_t handle_instant_metadata(dict_table_t *table,
else
if
(
len
<
BTR_EXTERN_FIELD_REF_SIZE
||
!
memcmp
(
data
+
len
-
BTR_EXTERN_FIELD_REF_SIZE
,
field_ref_zero
,
BTR_EXTERN_FIELD_REF_SIZE
))
{
col
->
def_val
.
len
=
UNIV_SQL_DEFAULT
;
goto
inconsistent
;
}
goto
incompatible
;
else
{
col
->
def_val
.
data
=
btr_copy_externally_stored_field
(
&
col
->
def_val
.
len
,
data
,
srv_page_size
,
len
,
index
->
table
->
heap
);
}
}
}
return
DB_SUCCESS
;
}
...
...
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