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

Function sp_cache_enforce_limit

sql/sp_cache.cc:256–261  ·  view source on GitHub ↗

Enforce that the current number of elements in the cache don't exceed the argument value by flushing the cache if necessary. @param[in] c Cache to check @param[in] upper_limit_for_elements Soft upper limit for number of sp_head objects that can be stored in the cache. */

Source from the content-addressed store, hash-verified

254 objects that can be stored in the cache.
255*/
256void
257sp_cache_enforce_limit(sp_cache *c, ulong upper_limit_for_elements)
258{
259 if (c)
260 c->enforce_limit(upper_limit_for_elements);
261}
262
263/*************************************************************************
264 Internal functions

Callers 3

mysql_parseFunction · 0.85
mysqld_stmt_prepareFunction · 0.85

Calls 1

enforce_limitMethod · 0.80

Tested by

no test coverage detected