Browse Source
MDEV-12266: Remove dict_table_is_discarded()
MDEV-12266: Remove dict_table_is_discarded()
The predicate dict_table_is_discarded() checks whether ALTER TABLE…DISCARD TABLESPACE has been executed. Replace most occurrences of dict_table_is_discarded() with checks of dict_table_t::space. A few checks for the flag DICT_TF2_DISCARDED are necessary; write them inline. Because !is_readable() implies !space, some checks for dict_table_is_discarded() were redundant.pull/759/head
16 changed files with 38 additions and 82 deletions
-
10storage/innobase/dict/dict0crea.cc
-
2storage/innobase/dict/dict0dict.cc
-
2storage/innobase/dict/dict0stats.cc
-
6storage/innobase/fil/fil0fil.cc
-
2storage/innobase/fts/fts0fts.cc
-
12storage/innobase/handler/ha_innodb.cc
-
12storage/innobase/handler/handler0alter.cc
-
10storage/innobase/include/dict0dict.h
-
12storage/innobase/include/dict0dict.ic
-
5storage/innobase/include/dict0mem.h
-
2storage/innobase/row/row0log.cc
-
2storage/innobase/row/row0merge.cc
-
4storage/innobase/row/row0mysql.cc
-
2storage/innobase/row/row0sel.cc
-
2storage/innobase/row/row0trunc.cc
-
35storage/innobase/trx/trx0roll.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue