MXS-1881: Move RBR objects into a separate header
The RBR event handling related objects are now all in the rpl_events.hh header. The intention is to combine all replication processing related events used in the binlogrouter and avrorouter into this header to make them reusable. Also fixed the TableCreateEvent constructor to use an rvalue instead of stealing an lvalue.
This commit is contained in:
@ -618,7 +618,7 @@ TableCreateEvent* table_create_from_schema(const char* file, const char* db,
|
||||
|
||||
if (json_extract_field_names(file, columns))
|
||||
{
|
||||
newtable = new (std::nothrow)TableCreateEvent(db, table, version, columns);
|
||||
newtable = new (std::nothrow)TableCreateEvent(db, table, version, std::move(columns));
|
||||
}
|
||||
|
||||
return newtable;
|
||||
@ -672,7 +672,7 @@ TableCreateEvent* table_create_alloc(char* ident, const char* sql, int len)
|
||||
if (!columns.empty())
|
||||
{
|
||||
int version = resolve_table_version(database, table);
|
||||
rval = new (std::nothrow) TableCreateEvent(database, table, version, columns);
|
||||
rval = new (std::nothrow) TableCreateEvent(database, table, version, std::move(columns));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user