MCPcopy Create free account
hub / github.com/MariaDB/server / tdc_assert_clean_share

Function tdc_assert_clean_share

sql/table_cache.cc:474–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472
473
474static void tdc_assert_clean_share(TDC_element *element)
475{
476 DBUG_ASSERT(element->share == 0);
477 DBUG_ASSERT(element->ref_count == 0);
478 DBUG_ASSERT(element->m_flush_tickets.is_empty());
479 DBUG_ASSERT(element->all_tables.is_empty());
480#ifndef DBUG_OFF
481 for (uint32 i= 0; i < tc_instances; i++)
482 DBUG_ASSERT(element->free_tables[i].list.is_empty());
483#endif
484 DBUG_ASSERT(element->all_tables_refs == 0);
485 DBUG_ASSERT(element->next == 0);
486 DBUG_ASSERT(element->prev == 0);
487}
488
489
490/**

Callers 3

lf_alloc_destructorFunction · 0.85
tdc_hash_initializerFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected