mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
cleanup: remove TABLE::vcol_set
use a read_set instead. a bit in the read_set means "the field value is needed" (read or generated, whatever it takes).
This commit is contained in:
@ -497,7 +497,9 @@ int prepare_record(TABLE *const table, const uint skip, const bool check)
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
/**
|
||||
Fills @c table->record[0] with computed values of extra persistent column which are present on slave but not on master.
|
||||
Fills @c table->record[0] with computed values of extra persistent column
|
||||
which are present on slave but not on master.
|
||||
|
||||
@param table Table whose record[0] buffer is prepared.
|
||||
@param master_cols No of columns on master
|
||||
@returns 0 on success
|
||||
@ -514,10 +516,8 @@ int fill_extra_persistent_columns(TABLE *table, int master_cols)
|
||||
vfield= *vfield_ptr;
|
||||
if (vfield->field_index >= master_cols && vfield->stored_in_db())
|
||||
{
|
||||
/*Set bitmap for writing*/
|
||||
bitmap_set_bit(table->vcol_set, vfield->field_index);
|
||||
bitmap_set_bit(table->write_set, vfield->field_index);
|
||||
error= vfield->vcol_info->expr->save_in_field(vfield,0);
|
||||
bitmap_clear_bit(table->vcol_set, vfield->field_index);
|
||||
}
|
||||
}
|
||||
return error;
|
||||
|
Reference in New Issue
Block a user