mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Small cleanup in code handling stored routines/table prelocking.
Use lazy initialization for Query_tables_list::sroutines hash. This step should significantly decrease amount of memory consumed by stored routines as we no longer will allocate chunk of memory required for this HASH for each statement in routine.
This commit is contained in:
@@ -742,7 +742,11 @@ public:
|
||||
0 - indicates that this query does not need prelocking.
|
||||
*/
|
||||
TABLE_LIST **query_tables_own_last;
|
||||
/* Set of stored routines called by statement. */
|
||||
/*
|
||||
Set of stored routines called by statement.
|
||||
(Note that we use lazy-initialization for this hash).
|
||||
*/
|
||||
enum { START_SROUTINES_HASH_SIZE= 16 };
|
||||
HASH sroutines;
|
||||
/*
|
||||
List linking elements of 'sroutines' set. Allows you to add new elements
|
||||
|
||||
Reference in New Issue
Block a user