From 2362e6c0e261882c8249206f3dd8bb3ee263bc9e Mon Sep 17 00:00:00 2001 From: Aleksey Midenkov Date: Thu, 3 Dec 2020 15:12:29 +0300 Subject: rollback() cleanup --- sql/handler.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sql/handler.cc') diff --git a/sql/handler.cc b/sql/handler.cc index 042e959e105..1a35251871d 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -5539,12 +5539,10 @@ int ha_create_table(THD *thd, const char *path, goto err; } - if (fk_update_refs) - { - if (share.fk_handle_create(thd, fk_shares) || - fk_shares.install_shadow_frms(thd)) - goto err; - } + if (fk_update_refs && + (share.fk_handle_create(thd, fk_shares) || + fk_shares.install_shadow_frms(thd))) + goto err; share.m_psi= PSI_CALL_get_table_share(temp_table, &share); -- cgit v1.2.1