From 2952274ac45f7f1dcf35d014fd4980dbc12b6c42 Mon Sep 17 00:00:00 2001 From: Nikita Malyavin Date: Tue, 25 Jul 2023 01:58:39 +0400 Subject: [PATCH] make a proper cleanup if online_alter_binlog is failed to create --- sql/sql_table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_table.cc b/sql/sql_table.cc index a08d0edcfbd..ce6034fb8c0 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -11894,7 +11894,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to, { from->s->online_alter_binlog= new Cache_flip_event_log(); if (!from->s->online_alter_binlog) - DBUG_RETURN(1); + goto err; from->s->online_alter_binlog->init_pthread_objects(); error= from->s->online_alter_binlog->open(WRITE_CACHE);