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

Function tdc_hash_initializer

sql/table_cache.cc:580–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578
579
580static void tdc_hash_initializer(LF_HASH *,
581 void *_element, const void *_key)
582{
583 TDC_element *element= static_cast<TDC_element *>(_element);
584 const LEX_STRING *key= static_cast<const LEX_STRING *>(_key);
585 memcpy(element->m_key, key->str, key->length);
586 element->m_key_length= (uint)key->length;
587 tdc_assert_clean_share(element);
588}
589
590
591static const uchar *tdc_hash_key(const void *element_, size_t *length, my_bool)

Callers

nothing calls this directly

Calls 1

tdc_assert_clean_shareFunction · 0.85

Tested by

no test coverage detected