MDEV-6701: InnoDB tests fail in 10.1

Fixed test failures seen on defragment tests, innodb.innodb-wl5522-debug-zip
and innodb.innodb_bug12902967.
This commit is contained in:
Jan Lindström 2014-09-08 09:34:03 +03:00
commit d3ceb934f1
14 changed files with 334 additions and 150 deletions

View file

@ -3752,7 +3752,13 @@ fil_open_single_table_tablespace(
#endif /* UNIV_SYNC_DEBUG */
ut_ad(!fix_dict || mutex_own(&(dict_sys->mutex)));
if (!fsp_flags_is_valid(flags)) {
/* Table flags can be ULINT_UNDEFINED if
dict_tf_to_fsp_flags_failure is set. */
if (flags != ULINT_UNDEFINED) {
if (!fsp_flags_is_valid(flags)) {
return(DB_CORRUPTION);
}
} else {
return(DB_CORRUPTION);
}