mirror of
https://github.com/MariaDB/server.git
synced 2025-03-08 04:03:30 +01:00
branches/zip: btr_free_externally_stored_field(): Clear rec_zip_size when
rec == NULL.
This commit is contained in:
parent
4b23d55164
commit
d03bdd38bc
1 changed files with 13 additions and 0 deletions
|
@ -4049,10 +4049,23 @@ btr_free_externally_stored_field(
|
||||||
|
|
||||||
if (UNIV_UNLIKELY(space_id != dict_index_get_space(index))) {
|
if (UNIV_UNLIKELY(space_id != dict_index_get_space(index))) {
|
||||||
ext_zip_size = fil_space_get_zip_size(space_id);
|
ext_zip_size = fil_space_get_zip_size(space_id);
|
||||||
|
/* This must be an undo log record in the system tablespace,
|
||||||
|
that is, in row_purge_upd_exist_or_extern().
|
||||||
|
Currently, externally stored records are stored in the
|
||||||
|
same tablespace as the referring records. */
|
||||||
|
ut_ad(!page_get_space_id(page_align(field_ref)));
|
||||||
|
ut_ad(!rec);
|
||||||
|
ut_ad(!page_zip);
|
||||||
} else {
|
} else {
|
||||||
ext_zip_size = rec_zip_size;
|
ext_zip_size = rec_zip_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!rec) {
|
||||||
|
/* This is a call from row_purge_upd_exist_or_extern(). */
|
||||||
|
ut_ad(!page_zip);
|
||||||
|
rec_zip_size = 0;
|
||||||
|
}
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
buf_block_t* rec_block;
|
buf_block_t* rec_block;
|
||||||
buf_block_t* ext_block;
|
buf_block_t* ext_block;
|
||||||
|
|
Loading…
Add table
Reference in a new issue