mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
fix query cache in embedded
this fixes main.partition_cache and main.cache_innodb in --embed
followup for 430d60d1fc
MDEV-24487
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
|
||||
C_MODE_START
|
||||
void lib_connection_phase(NET *net, int phase);
|
||||
void init_embedded_mysql(MYSQL *mysql, int client_flag);
|
||||
void *create_embedded_thd(int client_flag);
|
||||
void init_embedded_mysql(MYSQL *mysql, ulong client_flag);
|
||||
void *create_embedded_thd(ulong client_flag);
|
||||
int check_embedded_connection(MYSQL *mysql, const char *db);
|
||||
void free_old_query(MYSQL *mysql);
|
||||
extern MYSQL_METHODS embedded_methods;
|
||||
|
@@ -660,7 +660,7 @@ void end_embedded_server()
|
||||
}
|
||||
|
||||
|
||||
void init_embedded_mysql(MYSQL *mysql, int client_flag)
|
||||
void init_embedded_mysql(MYSQL *mysql, ulong client_flag)
|
||||
{
|
||||
THD *thd = (THD *)mysql->thd;
|
||||
thd->mysql= mysql;
|
||||
@@ -680,7 +680,7 @@ void init_embedded_mysql(MYSQL *mysql, int client_flag)
|
||||
create_new_thread(), and prepare_new_connection_state(). This should
|
||||
be refactored to avoid code duplication.
|
||||
*/
|
||||
void *create_embedded_thd(int client_flag)
|
||||
void *create_embedded_thd(ulong client_flag)
|
||||
{
|
||||
THD * thd= new THD(next_thread_id());
|
||||
|
||||
|
Reference in New Issue
Block a user