summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/table_cache.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/table_cache.cc b/sql/table_cache.cc
index 14e735ed3b2..b3c08400d56 100644
--- a/sql/table_cache.cc
+++ b/sql/table_cache.cc
@@ -847,7 +847,6 @@ TABLE_SHARE *tdc_acquire_share(THD *thd, const char *db, const char *table_name,
if ((*out_table= tc_acquire_table(thd, share)))
{
DBUG_ASSERT(!(flags & GTS_NOLOCK));
- DBUG_ASSERT(!share->tdc.prev && !share->tdc.next);
DBUG_ASSERT(!share->error);
DBUG_ASSERT(!share->is_view);
DBUG_RETURN(share);
@@ -898,7 +897,6 @@ TABLE_SHARE *tdc_acquire_share(THD *thd, const char *db, const char *table_name,
}
mysql_mutex_unlock(&LOCK_unused_shares);
}
- DBUG_ASSERT(share->tdc.prev == 0 && share->tdc.next == 0);
end:
DBUG_PRINT("exit", ("share: 0x%lx ref_count: %u",