summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <yuchen.pei@mariadb.com>2023-02-20 13:03:53 +1100
committerYuchen Pei <yuchen.pei@mariadb.com>2023-02-20 13:03:53 +1100
commitf107eefbfe73249ee36f1c477a3b2033542a0b75 (patch)
tree5a37516170a49d24692b0e01b9ab497f38131e87
parent5913f1e1390ffe6c8a29d5814819202e36b566e0 (diff)
downloadmariadb-git-bb-11.0-mdev-26137-wip-minimal-create-table.tar.gz
add check for discarded in h_i::open()bb-11.0-mdev-26137-wip-minimal-create-table
-rw-r--r--storage/innobase/handler/ha_innodb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 974e1df9313..8a11dc13aa0 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -14617,7 +14617,7 @@ ha_innobase::info_low(
ib_table = m_prebuilt->table;
DBUG_ASSERT(ib_table->get_ref_count() > 0);
- if (!ib_table->is_readable()) {
+ if ((ib_table->flags2 & DICT_TF2_DISCARDED) || !ib_table->is_readable()) {
ib_table->stats_mutex_lock();
ib_table->stat_initialized = true;
ib_table->stat_n_rows = 0;