Skip to content

Commit b8c5f94

Browse files
FooBarriorvuvova
authored andcommitted
reorder RPL_TABLE_LIST fields for better packing
1 parent a3d1d14 commit b8c5f94

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sql/rpl_utility.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,18 +253,18 @@ struct RPL_TABLE_LIST
253253
: public TABLE_LIST
254254
{
255255
bool m_tabledef_valid;
256+
bool master_had_triggers;
256257
table_def m_tabledef;
257258
TABLE *m_conv_table;
258-
bool master_had_triggers;
259259
const Copy_field *m_online_alter_copy_fields;
260260
const Copy_field *m_online_alter_copy_fields_end;
261261

262262
RPL_TABLE_LIST(const LEX_CSTRING *db_arg, const LEX_CSTRING *table_name_arg,
263263
thr_lock_type thr_lock_type,
264264
table_def &&tabledef, bool master_had_trigers)
265265
: TABLE_LIST(db_arg, table_name_arg, NULL, thr_lock_type),
266-
m_tabledef_valid(true), m_tabledef(std::move(tabledef)),
267-
m_conv_table(NULL), master_had_triggers(master_had_trigers),
266+
m_tabledef_valid(true), master_had_triggers(master_had_trigers),
267+
m_tabledef(std::move(tabledef)), m_conv_table(NULL),
268268
m_online_alter_copy_fields(NULL),
269269
m_online_alter_copy_fields_end(NULL)
270270
{}
@@ -275,8 +275,9 @@ struct RPL_TABLE_LIST
275275
const Copy_field *online_alter_copy_fields_end)
276276
: TABLE_LIST(table, lock_type),
277277
m_tabledef_valid(true),
278+
master_had_triggers(false),
278279
m_tabledef(std::move(tabledef)),
279-
m_conv_table(conv_table), master_had_triggers(false),
280+
m_conv_table(conv_table),
280281
m_online_alter_copy_fields(online_alter_copy_fields),
281282
m_online_alter_copy_fields_end(online_alter_copy_fields_end)
282283
{}

0 commit comments

Comments
 (0)