MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / reserve_space

Method reserve_space

sql/sql_error.cc:706–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704
705
706void Warning_info::reserve_space(THD *thd, uint count)
707{
708 while (m_warn_list.elements() &&
709 (m_warn_list.elements() + count) > thd->variables.max_error_count)
710 m_warn_list.remove(m_warn_list.front());
711}
712
713Sql_condition *Warning_info::push_warning(THD *thd,
714 uint sql_errno, const char* sqlstate,

Callers

nothing calls this directly

Calls 3

elementsMethod · 0.45
removeMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected