diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-09-09 13:06:46 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-09-09 13:06:46 +0300 |
commit | 7e07e38cf687ccd7fa3bd3a35c1eb7e4b307ca5f (patch) | |
tree | 5bbdf4ba99c33d6fb16f360d07e5d0c41be743bc /storage/innobase/dict | |
parent | e976f461d8c0e11a12453fa96f732a447b84420c (diff) | |
parent | 0eb38243ce09691cf46dd5fb875c1a1a1b75aff2 (diff) | |
download | mariadb-git-7e07e38cf687ccd7fa3bd3a35c1eb7e4b307ca5f.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'storage/innobase/dict')
-rw-r--r-- | storage/innobase/dict/dict0boot.cc | 4 | ||||
-rw-r--r-- | storage/innobase/dict/dict0dict.cc | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/storage/innobase/dict/dict0boot.cc b/storage/innobase/dict/dict0boot.cc index 87a2fe3f03f..8df93b97936 100644 --- a/storage/innobase/dict/dict0boot.cc +++ b/storage/innobase/dict/dict0boot.cc @@ -1,7 +1,7 @@ /***************************************************************************** Copyright (c) 1996, 2017, Oracle and/or its affiliates. All Rights Reserved. -Copyright (c) 2016, 2019, MariaDB Corporation. +Copyright (c) 2016, 2020, 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 @@ -180,7 +180,7 @@ dict_hdr_create( /* Create the dictionary header file block in a new, allocated file segment in the system tablespace */ - block = fseg_create(fil_system.sys_space, 0, + block = fseg_create(fil_system.sys_space, DICT_HDR + DICT_HDR_FSEG_HEADER, mtr); ut_a(DICT_HDR_PAGE_NO == block->page.id.page_no()); diff --git a/storage/innobase/dict/dict0dict.cc b/storage/innobase/dict/dict0dict.cc index a97a5cfca5d..a6d6e9e6b3c 100644 --- a/storage/innobase/dict/dict0dict.cc +++ b/storage/innobase/dict/dict0dict.cc @@ -6514,7 +6514,11 @@ dict_foreign_qualify_index( return(false); } - if (index->type & (DICT_SPATIAL | DICT_FTS)) { + if (index->type & (DICT_SPATIAL | DICT_FTS | DICT_CORRUPT)) { + return false; + } + + if (index->online_status >= ONLINE_INDEX_ABORTED) { return false; } |