diff --git a/storage/innobase/lob/lob0lob.cc b/storage/innobase/lob/lob0lob.cc index d5b7fd10e79..085d96284f8 100644 --- a/storage/innobase/lob/lob0lob.cc +++ b/storage/innobase/lob/lob0lob.cc @@ -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