diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2020-12-03 15:12:29 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2020-12-04 23:26:41 +0300 |
commit | 2362e6c0e261882c8249206f3dd8bb3ee263bc9e (patch) | |
tree | 542b5309fcdad353832910f0b7d6684e83deae12 /sql/handler.cc | |
parent | 52046f9e9848344d084b93cd2b55a3e0b83c8d35 (diff) | |
download | mariadb-git-2362e6c0e261882c8249206f3dd8bb3ee263bc9e.tar.gz |
rollback() cleanup
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 10 |
1 files changed, 4 insertions, 6 deletions
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); |