mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fixed the old kludge for pre-loading functions and made it more efficient
using a hash table instead (and made it work with lex pointers). Some additional code cleanup too.
This commit is contained in:
@ -497,9 +497,19 @@ typedef struct st_lex
|
||||
sp_head *sphead;
|
||||
bool sp_lex_in_use; /* Keep track on lex usage in SPs for error handling */
|
||||
sp_pcontext *spcont;
|
||||
List<char> spfuns; /* Called functions */
|
||||
HASH spfuns; /* Called functions */
|
||||
|
||||
st_lex()
|
||||
{
|
||||
bzero((char *)&spfuns, sizeof(spfuns));
|
||||
}
|
||||
|
||||
~st_lex()
|
||||
{
|
||||
if (spfuns.array.buffer)
|
||||
hash_free(&spfuns);
|
||||
}
|
||||
|
||||
st_lex() {}
|
||||
inline void uncacheable()
|
||||
{
|
||||
safe_to_cache_query= 0;
|
||||
|
Reference in New Issue
Block a user