Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions storage/innobase/lob/lob0lob.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1397,42 +1397,4 @@ bool rec_check_lobref_space_id(dict_index_t *index, const rec_t *rec,
}
#endif /* UNIV_DEBUG */

dberr_t mark_not_partially_updatable(trx_t *trx, dict_index_t *index,
const upd_t *update, mtr_t *mtr) {
if (!index->is_clustered()) {
/* Only clustered index can have LOBs. */
return (DB_SUCCESS);
}

const ulint n_fields = upd_get_n_fields(update);

for (ulint i = 0; i < n_fields; i++) {
const upd_field_t *ufield = upd_get_nth_field(update, i);

if (update->is_partially_updated(ufield->field_no)) {
continue;
}

if (ufield->is_virtual()) {
continue;
}

const dfield_t *new_field = &ufield->new_val;

if (ufield->ext_in_old && !dfield_is_ext(new_field)) {
const dfield_t *old_field = &ufield->old_val;
byte *field_ref = old_field->blobref();
ref_t ref(field_ref);

if (!ref.is_null_relaxed()) {
ut_ad(ref.space_id() == index->space_id());
ref.mark_not_partially_updatable(trx, mtr, index,
index->get_page_size());
}
}
}

return (DB_SUCCESS);
}

} // namespace lob