mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
btr_copy_externally_stored_field(): Only set the 'offset' variable when
needed.
This commit is contained in:
parent
f2651a69ba
commit
83ed919c45
1 changed files with 5 additions and 5 deletions
|
@ -3791,11 +3791,6 @@ btr_copy_externally_stored_field(
|
||||||
|
|
||||||
page_no = btr_blob_get_next_page_no(blob_header);
|
page_no = btr_blob_get_next_page_no(blob_header);
|
||||||
|
|
||||||
/* On other BLOB pages except the first the BLOB header
|
|
||||||
always is at the page data start: */
|
|
||||||
|
|
||||||
offset = FIL_PAGE_DATA;
|
|
||||||
|
|
||||||
mtr_commit(&mtr);
|
mtr_commit(&mtr);
|
||||||
|
|
||||||
if (page_no == FIL_NULL) {
|
if (page_no == FIL_NULL) {
|
||||||
|
@ -3806,6 +3801,11 @@ btr_copy_externally_stored_field(
|
||||||
return(buf);
|
return(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* On other BLOB pages except the first the BLOB header
|
||||||
|
always is at the page data start: */
|
||||||
|
|
||||||
|
offset = FIL_PAGE_DATA;
|
||||||
|
|
||||||
ut_a(copied_len < local_len + extern_len);
|
ut_a(copied_len < local_len + extern_len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue