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. */
| 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 | |
| 72 | private: |
| 73 | void init(); |
no test coverage detected