Commit 2952274a authored by Nikita Malyavin's avatar Nikita Malyavin Committed by Sergei Golubchik

make a proper cleanup if online_alter_binlog is failed to create

parent bac8f189
...@@ -11894,7 +11894,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to, ...@@ -11894,7 +11894,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
{ {
from->s->online_alter_binlog= new Cache_flip_event_log(); from->s->online_alter_binlog= new Cache_flip_event_log();
if (!from->s->online_alter_binlog) if (!from->s->online_alter_binlog)
DBUG_RETURN(1); goto err;
from->s->online_alter_binlog->init_pthread_objects(); from->s->online_alter_binlog->init_pthread_objects();
error= from->s->online_alter_binlog->open(WRITE_CACHE); error= from->s->online_alter_binlog->open(WRITE_CACHE);
......
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