Bug #25075: sql_class.cc doesn't compile with --without-query-cache
Wrap query_cache_init_query() call with #ifdef HAVE_QUERY_CACHE in THD::THD()
This commit is contained in:
parent
9a1ec4d376
commit
5fdfea0023
@ -224,7 +224,9 @@ THD::THD()
|
|||||||
#endif
|
#endif
|
||||||
client_capabilities= 0; // minimalistic client
|
client_capabilities= 0; // minimalistic client
|
||||||
net.last_error[0]=0; // If error on boot
|
net.last_error[0]=0; // If error on boot
|
||||||
|
#ifdef HAVE_QUERY_CACHE
|
||||||
query_cache_init_query(&net); // If error on boot
|
query_cache_init_query(&net); // If error on boot
|
||||||
|
#endif
|
||||||
ull=0;
|
ull=0;
|
||||||
system_thread= cleanup_done= abort_on_warning= no_warnings_for_error= 0;
|
system_thread= cleanup_done= abort_on_warning= no_warnings_for_error= 0;
|
||||||
peer_port= 0; // For SHOW PROCESSLIST
|
peer_port= 0; // For SHOW PROCESSLIST
|
||||||
|
Loading…
x
Reference in New Issue
Block a user