Skip to content

Commit 9667ec1

Browse files
committed
fix query cache in embedded
this fixes main.partition_cache and main.cache_innodb in --embed followup for 430d60d MDEV-24487
1 parent 646e2f4 commit 9667ec1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libmysqld/embedded_priv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
C_MODE_START
2121
void lib_connection_phase(NET *net, int phase);
22-
void init_embedded_mysql(MYSQL *mysql, int client_flag);
23-
void *create_embedded_thd(int client_flag);
22+
void init_embedded_mysql(MYSQL *mysql, ulong client_flag);
23+
void *create_embedded_thd(ulong client_flag);
2424
int check_embedded_connection(MYSQL *mysql, const char *db);
2525
void free_old_query(MYSQL *mysql);
2626
extern MYSQL_METHODS embedded_methods;

libmysqld/lib_sql.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ void end_embedded_server()
660660
}
661661

662662

663-
void init_embedded_mysql(MYSQL *mysql, int client_flag)
663+
void init_embedded_mysql(MYSQL *mysql, ulong client_flag)
664664
{
665665
THD *thd = (THD *)mysql->thd;
666666
thd->mysql= mysql;
@@ -680,7 +680,7 @@ void init_embedded_mysql(MYSQL *mysql, int client_flag)
680680
create_new_thread(), and prepare_new_connection_state(). This should
681681
be refactored to avoid code duplication.
682682
*/
683-
void *create_embedded_thd(int client_flag)
683+
void *create_embedded_thd(ulong client_flag)
684684
{
685685
THD * thd= new THD(next_thread_id());
686686

0 commit comments

Comments
 (0)