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

Method reserve_space

sql/sql_error.cc:692–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690
691
692void Warning_info::reserve_space(THD *thd, uint count)
693{
694 while (m_warn_list.elements() &&
695 (m_warn_list.elements() + count) > thd->variables.max_error_count)
696 m_warn_list.remove(m_warn_list.front());
697}
698
699Sql_condition *Warning_info::push_warning(THD *thd,
700 const Sql_condition_identity *value,

Callers 1

executeMethod · 0.45

Calls 3

elementsMethod · 0.45
removeMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected