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

Method enforce_limit

sql/sp_cache.cc:66–70  ·  view source on GitHub ↗

Remove all elements from a stored routine cache if the current number of elements exceeds the argument value. @param[in] upper_limit_for_elements Soft upper limit of elements that can be stored in the cache. */

Source from the content-addressed store, hash-verified

64 can be stored in the cache.
65 */
66 void enforce_limit(ulong upper_limit_for_elements)
67 {
68 if (m_hashtable.records > upper_limit_for_elements)
69 my_hash_reset(&m_hashtable);
70 }
71
72private:
73 void init();

Callers 1

sp_cache_enforce_limitFunction · 0.80

Calls 1

my_hash_resetFunction · 0.85

Tested by

no test coverage detected