Commit 20b474be authored by Sachin's avatar Sachin

MDEV-21063 Very many test failures on big-endian PowerPC

Memcpy is endian dependent, So instead of memcpy we will use int2store.
And m_metadata_size can be 0,1 or 2, And int2store will take care of it.
parent 251c6e17
......@@ -5918,9 +5918,8 @@ int Table_map_log_event::save_field_metadata()
for (unsigned int i= 0 ; i < m_table->s->fields ; i++)
{
DBUG_PRINT("debug", ("field_type: %d", m_coltype[i]));
//index+= m_table->s->field[i]->save_field_metadata(&m_field_metadata[index]);
info= binlog_type_info_array + i;
memcpy(&m_field_metadata[index], (uchar *)&info->m_metadata, info->m_metadata_size);
int2store(&m_field_metadata[index], info->m_metadata);
index+= info->m_metadata_size;
DBUG_EXECUTE_IF("inject_invalid_blob_size",
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment