Skip to content

Commit 11bc573

Browse files
geraldluluyyang1u
authored andcommitted
fix compile error
1 parent 6ee09e5 commit 11bc573

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

storage/innobase/lob/lob0lob.cc

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,42 +1397,4 @@ bool rec_check_lobref_space_id(dict_index_t *index, const rec_t *rec,
13971397
}
13981398
#endif /* UNIV_DEBUG */
13991399

1400-
dberr_t mark_not_partially_updatable(trx_t *trx, dict_index_t *index,
1401-
const upd_t *update, mtr_t *mtr) {
1402-
if (!index->is_clustered()) {
1403-
/* Only clustered index can have LOBs. */
1404-
return (DB_SUCCESS);
1405-
}
1406-
1407-
const ulint n_fields = upd_get_n_fields(update);
1408-
1409-
for (ulint i = 0; i < n_fields; i++) {
1410-
const upd_field_t *ufield = upd_get_nth_field(update, i);
1411-
1412-
if (update->is_partially_updated(ufield->field_no)) {
1413-
continue;
1414-
}
1415-
1416-
if (ufield->is_virtual()) {
1417-
continue;
1418-
}
1419-
1420-
const dfield_t *new_field = &ufield->new_val;
1421-
1422-
if (ufield->ext_in_old && !dfield_is_ext(new_field)) {
1423-
const dfield_t *old_field = &ufield->old_val;
1424-
byte *field_ref = old_field->blobref();
1425-
ref_t ref(field_ref);
1426-
1427-
if (!ref.is_null_relaxed()) {
1428-
ut_ad(ref.space_id() == index->space_id());
1429-
ref.mark_not_partially_updatable(trx, mtr, index,
1430-
index->get_page_size());
1431-
}
1432-
}
1433-
}
1434-
1435-
return (DB_SUCCESS);
1436-
}
1437-
14381400
} // namespace lob

0 commit comments

Comments
 (0)