summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2021-03-14 20:03:34 +0300
committerAleksey Midenkov <midenok@gmail.com>2021-03-14 20:03:34 +0300
commit57075b34c89ac8c0e38c8500dffb38c1dcd11eb6 (patch)
tree27a48e735bb375e412ecea47569d8bc89a056109
parentd79678febc9ce3ba02a1b3086dccce270f58e0d5 (diff)
downloadmariadb-git-57075b34c89ac8c0e38c8500dffb38c1dcd11eb6.tar.gz
MDEV-21652 cleanup
-rw-r--r--storage/innobase/handler/ha_innodb.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 130df46d7e7..2518ef159ec 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -12225,7 +12225,7 @@ check_legacy_fk(trx_t *trx, const TABLE *table, bool lock_dict_mutex)
dberr_t err = fk_legacy_storage_exists(lock_dict_mutex);
if (err == DB_TABLE_NOT_FOUND) {
- return 0;
+ return DB_SUCCESS;
}
if (err != DB_SUCCESS) {
return convert_error_code_to_mysql(err, 0, NULL);
@@ -12251,7 +12251,7 @@ check_legacy_fk(trx_t *trx, const TABLE *table, bool lock_dict_mutex)
if (data.found) {
return HA_ERR_FK_UPGRADE;
}
- return 0;
+ return DB_SUCCESS;
}
#endif /* WITH_INNODB_FOREIGN_UPGRADE */