diff --git a/storage/innobase/include/page0page.h b/storage/innobase/include/page0page.h index a73b9e48755..abb395938fc 100644 --- a/storage/innobase/include/page0page.h +++ b/storage/innobase/include/page0page.h @@ -1,6 +1,6 @@ /***************************************************************************** Copyright (c) 1994, 2019, Oracle and/or its affiliates. All Rights Reserved. -Copyright (c) 2013, 2020, MariaDB Corporation. +Copyright (c) 2013, 2021, MariaDB Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software diff --git a/storage/innobase/row/row0import.cc b/storage/innobase/row/row0import.cc index 07741aa6acc..e2606c0e52e 100644 --- a/storage/innobase/row/row0import.cc +++ b/storage/innobase/row/row0import.cc @@ -3184,10 +3184,10 @@ static dberr_t handle_instant_metadata(dict_table_t *table, return err; } - const auto zip_size= fil_space_t::zip_size(space_flags); - const uint64_t physical_size= zip_size ? zip_size : srv_page_size; + const unsigned zip_size= fil_space_t::zip_size(space_flags); + const unsigned physical_size= zip_size ? zip_size : unsigned(srv_page_size); ut_ad(physical_size <= UNIV_PAGE_SIZE_MAX); - const auto space_id= page_get_space_id(first_page.get()); + const uint32_t space_id= page_get_space_id(first_page.get()); auto *space_crypt= fil_space_read_crypt_data(zip_size, first_page.get()); SCOPE_EXIT([&space_crypt]() {