mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Get rid of valgrind warning for sql_sequence tests.
Added extra memcpy to get rid of valgrind warning for sequence tables with InnoDB. When reading a row from InnoDB, some of the bytes in the row are marked as not initialized. Needs to be investigated later, but this is a safe patch for now.
This commit is contained in:
@ -595,6 +595,12 @@ int sequence_definition::write(TABLE *table, bool all_fields)
|
|||||||
else
|
else
|
||||||
table->rpl_write_set= &table->s->all_set;
|
table->rpl_write_set= &table->s->all_set;
|
||||||
|
|
||||||
|
/*
|
||||||
|
The following is needed to fix comparison of rows in
|
||||||
|
ha_update_first_row() for InnoDB
|
||||||
|
*/
|
||||||
|
memcpy(table->record[1],table->s->default_values, table->s->reclength);
|
||||||
|
|
||||||
/* Update table */
|
/* Update table */
|
||||||
save_write_set= table->write_set;
|
save_write_set= table->write_set;
|
||||||
save_read_set= table->read_set;
|
save_read_set= table->read_set;
|
||||||
|
Reference in New Issue
Block a user