MCPcopy Create free account
hub / github.com/MariaDB/server / unlink_blobs

Function unlink_blobs

sql/sql_insert.cc:3822–3829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3820/* Remove all pointers to data for blob fields so that original table doesn't try to free them */
3821
3822static void unlink_blobs(TABLE *table)
3823{
3824 for (Field **ptr=table->field ; *ptr ; ptr++)
3825 {
3826 if ((*ptr)->flags & BLOB_FLAG)
3827 ((Field_blob *) (*ptr))->clear_temporary();
3828 }
3829}
3830
3831/* Free blobs stored in current row */
3832

Callers 1

write_delayedFunction · 0.85

Calls 1

clear_temporaryMethod · 0.80

Tested by

no test coverage detected